File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
include/clang/CIR/Dialect/IR Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1887,6 +1887,12 @@ def CallOp : CIR_Op<"call",
1887
1887
$_state.addOperands(operands);
1888
1888
if (!fn_type.isVoid())
1889
1889
$_state.addTypes(fn_type.getReturnType());
1890
+ }]>,
1891
+ OpBuilder<(ins "SymbolRefAttr":$callee, "mlir::Type":$resType,
1892
+ CArg<"ValueRange", "{}">:$operands), [{
1893
+ $_state.addOperands(operands);
1894
+ $_state.addAttribute("callee", callee);
1895
+ $_state.addTypes(resType);
1890
1896
}]>];
1891
1897
1892
1898
let extraClassDeclaration = [{
Original file line number Diff line number Diff line change 5
5
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++20 -fclangir -fclangir-idiom-recognizer -emit-cir -I%S/../Inputs -mmlir --mlir-print-ir-after=cir-idiom-recognizer %s -o - 2>&1 | FileCheck %s -check-prefix=AFTER-IDIOM
6
6
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++20 -fclangir -fclangir-idiom-recognizer -emit-cir -I%S/../Inputs -mmlir --mlir-print-ir-after=cir-lowering-prepare %s -o - 2>&1 | FileCheck %s -check-prefix=AFTER-LOWERING-PREPARE
7
7
8
+ // RUN: %clang_cc1 -fclangir -emit-cir -I%S/../Inputs -mmlir --mlir-print-ir-before=cir-idiom-recognizer -std=c++20 -triple x86_64-unknown-linux-gnu %s -o - 2>&1 | FileCheck %s -check-prefix=BEFORE-IDIOM
9
+ // RUN: %clang_cc1 -fclangir -emit-cir -I%S/../Inputs -mmlir --mlir-print-ir-after=cir-idiom-recognizer -std=c++20 -triple x86_64-unknown-linux-gnu %s -o - 2>&1 | FileCheck %s -check-prefix=AFTER-IDIOM
10
+ // RUN: %clang_cc1 -fclangir -emit-cir -I%S/../Inputs -mmlir --mlir-print-ir-after=cir-lowering-prepare -std=c++20 -triple x86_64-unknown-linux-gnu %s -o - 2>&1 | FileCheck %s -check-prefix=AFTER-LOWERING-PREPARE
11
+
8
12
// PASS_ENABLED: IR Dump After IdiomRecognizer (cir-idiom-recognizer)
9
13
10
14
#include " std-cxx.h"
You can’t perform that action at this time.
0 commit comments