From patchwork Sat Nov 16 01:23:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Malcolm X-Patchwork-Id: 1196012 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-513736-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="mt/kVPc4"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="IkQ+bGga"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47FHWJ1cd9z9s7T for ; Sat, 16 Nov 2019 12:22:04 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :content-type:content-transfer-encoding; q=dns; s=default; b=yUs za2KflbyoPC9rshf49gYatTqAZFZDFCUV3P6zfQesSSKWrSguc30qVs+J/NcIGG7 oreX1KTf4T20xYf3p8/MtTboEHbL9WWxfIr50wPB6B2q2dVtQCtGovMJBCNClZWw wk/v14c1jytHWYdXvgCaB5ackmOMLD8hTa8WVK3I= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references :content-type:content-transfer-encoding; s=default; bh=1qVfg/uWx OeNl7TlNtsegG66nsw=; b=mt/kVPc4zsCZ09PnOTI6CrhZp690CLCdoxEubVrg5 as9Y0C1ZFGHDGC3Aq6eVANeNTIorq1wM5f3Qgjv1fNtfHTZam7Bb0dATxi34/Qze kfeK+xWsf6yJ9fbQk1zRj7rXNvnyHGQjqBU4ILbDa4jUPZ1nh7ORYiOmb42IuSW1 Uk= Received: (qmail 60739 invoked by alias); 16 Nov 2019 01:18:03 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 57756 invoked by uid 89); 16 Nov 2019 01:17:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS, UPPERCASE_50_75 autolearn=ham version=3.3.1 spammy=brig X-HELO: us-smtp-delivery-1.mimecast.com Received: from us-smtp-2.mimecast.com (HELO us-smtp-delivery-1.mimecast.com) (205.139.110.61) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 16 Nov 2019 01:17:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573867050; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xRwpg2fc7Io0rKMFA2Oz+kKf1ybKtq/qtfd6kWyoJGY=; b=IkQ+bGgavbk9othYLg7RZsKTmhPgxnNAo3v4trWeE6Sx2WHiFvsYYMgXp5EJWvSgKm5pBw tFaSE6f/LSgi1HqQxcNB1w7P08VWrYlqUnB8fxwesNk+Q8sxbywZobY/LFgGMYiYkBmsBO pn+z33O3lSSK+spr82sajE6hZb9h0OE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-48-vVfUh8POPb2gCfrPcwKV5A-1; Fri, 15 Nov 2019 20:17:27 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7263B911A3 for ; Sat, 16 Nov 2019 01:17:26 +0000 (UTC) Received: from c64.redhat.com (ovpn-112-32.phx2.redhat.com [10.3.112.32]) by smtp.corp.redhat.com (Postfix) with ESMTP id 87FF110246FB; Sat, 16 Nov 2019 01:17:25 +0000 (UTC) From: David Malcolm To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [PATCH 20/49] analyzer: new builtins Date: Fri, 15 Nov 2019 20:23:07 -0500 Message-Id: <1573867416-55618-21-git-send-email-dmalcolm@redhat.com> In-Reply-To: <1573867416-55618-1-git-send-email-dmalcolm@redhat.com> References: <1573867416-55618-1-git-send-email-dmalcolm@redhat.com> X-Mimecast-Spam-Score: 0 X-IsSubscribed: yes gcc/ChangeLog: * builtins.def (BUILT_IN_ANALYZER_BREAK): New builtin. (BUILT_IN_ANALYZER_DUMP): New builtin. (BUILT_IN_ANALYZER_DUMP_EXPLODED_NODES): New builtin. (BUILT_IN_ANALYZER_DUMP_NUM_HEAP_REGIONS): New builtin. (BUILT_IN_ANALYZER_DUMP_PATH): New builtin. (BUILT_IN_ANALYZER_DUMP_REGION_MODEL): New builtin. (BUILT_IN_ANALYZER_EVAL): New builtin. --- gcc/builtins.def | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gcc/builtins.def b/gcc/builtins.def index d8233f5..f34e95f 100644 --- a/gcc/builtins.def +++ b/gcc/builtins.def @@ -1107,4 +1107,37 @@ DEF_GCC_BUILTIN (BUILT_IN_LINE, "LINE", BT_FN_INT, ATTR_NOTHROW_LEAF_LIST) /* HSAIL/BRIG frontend builtins. */ #include "brig-builtins.def" + +/* Analyzer builtins. */ +DEF_BUILTIN (BUILT_IN_ANALYZER_BREAK, "__analyzer_break", + BUILT_IN_NORMAL, BT_FN_VOID, BT_LAST, + false, false, false, ATTR_NULL, true, true) + +DEF_BUILTIN (BUILT_IN_ANALYZER_DUMP, "__analyzer_dump", + BUILT_IN_NORMAL, BT_FN_VOID, BT_LAST, + false, false, false, ATTR_NULL, true, true) + +DEF_BUILTIN (BUILT_IN_ANALYZER_DUMP_EXPLODED_NODES, + "__analyzer_dump_exploded_nodes", + BUILT_IN_NORMAL, BT_FN_VOID_INT, BT_LAST, + false, false, false, ATTR_NULL, true, true) + +DEF_BUILTIN (BUILT_IN_ANALYZER_DUMP_NUM_HEAP_REGIONS, + "__analyzer_dump_num_heap_regions", + BUILT_IN_NORMAL, BT_FN_VOID, BT_LAST, + false, false, false, ATTR_NULL, true, true) + +DEF_BUILTIN (BUILT_IN_ANALYZER_DUMP_PATH, "__analyzer_dump_path", + BUILT_IN_NORMAL, BT_FN_VOID, BT_LAST, + false, false, false, ATTR_NULL, true, true) + +DEF_BUILTIN (BUILT_IN_ANALYZER_DUMP_REGION_MODEL, + "__analyzer_dump_region_model", + BUILT_IN_NORMAL, BT_FN_VOID, BT_LAST, + false, false, false, ATTR_NULL, true, true) + +DEF_BUILTIN (BUILT_IN_ANALYZER_EVAL, "__analyzer_eval", + BUILT_IN_NORMAL, BT_FN_VOID_INT, BT_LAST, + false, false, false, ATTR_NULL, true, true) + #undef DEF_BUILTIN