Home
last modified time | relevance | path

Searched full:op (Results 1 – 25 of 3895) sorted by relevance

12345678910>>...156

/llvm-project/mlir/unittests/Dialect/OpenACC/
H A DOpenACCOpsTest.cpp45 template <typename Op> in testAsyncOnly()
48 OwningOpRef<Op> op = b.create<Op>(loc, TypeRange{}, ValueRange{}); in testAsyncOnly()
49 EXPECT_FALSE(op->hasAsyncOnly()); in testAsyncOnly()
51 EXPECT_FALSE(op->hasAsyncOnly(d)); in testAsyncOnly()
54 op->setAsyncOnlyAttr(b.getArrayAttr({dtypeNone})); in testAsyncOnly()
55 EXPECT_TRUE(op->hasAsyncOnly()); in testAsyncOnly()
56 EXPECT_TRUE(op->hasAsyncOnly(DeviceType::None)); in testAsyncOnly()
57 op in testAsyncOnly()
44 OwningOpRef<Op> op = b.create<Op>(loc, TypeRange{}, ValueRange{}); testAsyncOnly() local
79 OwningOpRef<Op> op = b.create<Op>(loc, TypeRange{}, ValueRange{}); testAsyncValue() local
108 OwningOpRef<Op> op = b.create<Op>(loc, TypeRange{}, ValueRange{}); testNumGangsValues() local
175 OwningOpRef<Op> op = b.create<Op>(loc, TypeRange{}, ValueRange{}); testVectorLength() local
203 OwningOpRef<Op> op = b.create<Op>(loc, TypeRange{}, ValueRange{}); testWaitOnly() local
243 OwningOpRef<Op> op = b.create<Op>(loc, TypeRange{}, ValueRange{}); testWaitValues() local
337 OwningOpRef<LoopOp> op = b.create<LoopOp>(loc, TypeRange{}, ValueRange{}); TEST_F() local
383 OwningOpRef<RoutineOp> op = TEST_F() local
[all...]
/llvm-project/mlir/test/IR/
H A Dvisitors.mlir5 // Module and function op and their immediately nested blocks are not erased in
24 // CHECK-LABEL: Op pre-order visit
25 // CHECK: Visiting op 'builtin.module'
26 // CHECK: Visiting op 'func.func'
27 // CHECK: Visiting op 'scf.for'
28 // CHECK: Visiting op 'use0'
29 // CHECK: Visiting op 'scf.if'
30 // CHECK: Visiting op 'use1'
31 // CHECK: Visiting op 'use2'
32 // CHECK: Visiting op 'use3'
[all …]
H A Dgeneric-visitors-interrupt.mlir10 // CHECK: step 0 op 'builtin.module' before all regions
11 // CHECK: step 1 op 'func.func' before all regions
23 // CHECK: step 0 op 'builtin.module' before all regions
24 // CHECK: step 1 op 'func.func' before all regions
25 // CHECK: step 2 op 'foo' before all regions
26 // CHECK: step 3 op 'bar' before all regions
42 // CHECK: step 0 op 'builtin.module' before all regions
43 // CHECK: step 1 op 'func.func' before all regions
44 // CHECK: step 2 op 'foo' before all regions
45 // CHECK: step 3 op 'bar0' before all regions
[all …]
/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFExpression.cpp22 typedef DWARFExpression::Operation Op; typedef
23 typedef Op::Description Desc;
28 Descriptions[DW_OP_addr] = Desc(Op::Dwarf2, Op::SizeAddr); in getOpDescriptions()
29 Descriptions[DW_OP_deref] = Desc(Op::Dwarf2); in getOpDescriptions()
30 Descriptions[DW_OP_const1u] = Desc(Op::Dwarf2, Op::Size1); in getOpDescriptions()
31 Descriptions[DW_OP_const1s] = Desc(Op::Dwarf2, Op::SignedSize1); in getOpDescriptions()
32 Descriptions[DW_OP_const2u] = Desc(Op in getOpDescriptions()
397 verify(const Operation & Op,DWARFUnit * U) verify() argument
447 const DWARFExpression::Operation &Op = *I; printCompactDWARFExpr() local
[all...]
/llvm-project/llvm/test/Transforms/InstCombine/
H A Dfreeze-fp-ops.ll10 ; CHECK-NEXT: [[OP:%.*]] = fneg float [[ARG_FR]]
11 ; CHECK-NEXT: ret float [[OP]]
13 %op = fneg float %arg
14 %freeze = freeze float %op
21 ; CHECK-NEXT: [[OP:%.*]] = fadd float [[ARG0_FR]], [[ARG1:%.*]]
22 ; CHECK-NEXT: ret float [[OP]]
24 %op = fadd float %arg0, %arg1
25 %freeze = freeze float %op
32 ; CHECK-NEXT: [[OP:%.*]] = fsub float [[ARG0_FR]], [[ARG1:%.*]]
33 ; CHECK-NEXT: ret float [[OP]]
[all …]
H A Dknown-never-nan.ll16 %op = call double @llvm.sqrt.f64(double %fabs)
17 %tmp = fcmp ord double %op, %op
23 ; CHECK-NEXT: [[TMP:%.*]] = fcmp ord double [[OP:%.*]], 0.000000e+00
29 %op = select i1 %cond, double %lhs, double %rhs
30 %tmp = fcmp ord double %op, %op
36 ; CHECK-NEXT: [[TMP:%.*]] = fcmp ord double [[OP:%.*]], 0.000000e+00
41 %op = select i1 %cond, double %lhs, double %rhs
42 %tmp = fcmp ord double %op,
[all...]
/llvm-project/compiler-rt/lib/asan/
H A Dasan_rtl_x86_64.S9 #define NAME(n, reg, op, s, i) n##_##op##_##i##_##s##_##reg argument
11 #define FNAME(reg, op, s, i) NAME(__asan_check, reg, op, s, i) argument
12 #define RLABEL(reg, op, s, i) NAME(.return, reg, op, s, i) argument
13 #define CLABEL(reg, op, s, i) NAME(.check, reg, op, s, i) argument
14 #define FLABEL(reg, op, s, i) NAME(.fail, reg, op, s, i) argument
16 #define BEGINF(reg, op, s, i) \ argument
17 .section .text.FNAME(reg, op, s, i),"ax",@progbits ;\
18 .globl FNAME(reg, op, s, i) ;\
19 .hidden FNAME(reg, op, s, i) ;\
20 ASM_TYPE_FUNCTION(FNAME(reg, op, s, i)) ;\
[all …]
/llvm-project/llvm/test/tools/llvm-reduce/
H A Dreduce-flags.ll8 %op = add nuw nsw i32 %a, %b
9 ret i32 %op
16 %op = add nuw nsw i32 %a, %b
17 ret i32 %op
24 %op = add nuw nsw i32 %a, %b
25 ret i32 %op
32 %op = add nuw i32 %a, %b
33 ret i32 %op
40 %op = add nsw i32 %a, %b
41 ret i32 %op
[all...]
H A Dreduce-opcodes.ll5 ; RESULT-NEXT: %op = fmul fast float %a, %b, !dbg !7, !fpmath !13
6 ; RESULT-NEXT: ret float %op
8 %op = fdiv fast float %a, %b, !dbg !7, !fpmath !13
9 ret float %op
13 ; RESULT-NEXT: %op = fmul nnan float %a, %b, !dbg !7, !fpmath !13
14 ; RESULT-NEXT: ret float %op
16 %op = frem nnan float %a, %b, !dbg !7, !fpmath !13
17 ret float %op
21 ; RESULT-NEXT: %op = mul i32 %a, %b, !dbg !7
22 ; RESULT-NEXT: ret i32 %op
[all...]
H A Dreduce-opcodes-call.ll28 ; RESULT-NEXT: %op = load volatile {}, ptr %ptr, align 1
29 ; RESULT-NEXT: ret {} %op
31 %op = call {} @return_0_size(ptr %ptr)
32 ret {} %op
116 ; RESULT-NEXT: %op = load volatile i32, ptr addrspace(1) %ptr, align 4
117 ; RESULT-NEXT: ret i32 %op
119 %op = call i32 @load_like_i32(ptr addrspace(1) %ptr)
120 ret i32 %op
124 ; ALL-NEXT: %op = call i32 @load_like_i32(ptr addrspace(1) %ptr)
125 ; ALL-NEXT: ret i32 %op
[all …]
/llvm-project/llvm/test/Transforms/InstSimplify/
H A Dknown-never-nan.ll8 ; CHECK-NEXT: [[OP:%.*]] = call nnan double @func()
11 %op = call nnan double @func()
12 %tmp = fcmp ord double %op, %op
21 %op = call double @llvm.fabs.f64(double %nnan)
22 %tmp = fcmp uno double %op, %op
31 %op = call double @llvm.canonicalize.f64(double %nnan)
32 %tmp = fcmp ord double %op, %op
[all...]
/llvm-project/mlir/lib/Conversion/AffineToStandard/
H A DAffineToStandard.cpp85 Value mlir::lowerAffineUpperBound(AffineForOp op, OpBuilder &builder) { in lowerAffineUpperBound() argument
86 return lowerAffineMapMin(builder, op.getLoc(), op.getUpperBoundMap(), in lowerAffineUpperBound()
87 op.getUpperBoundOperands()); in lowerAffineUpperBound()
93 Value mlir::lowerAffineLowerBound(AffineForOp op, OpBuilder &builder) { in lowerAffineLowerBound() argument
94 return lowerAffineMapMax(builder, op.getLoc(), op.getLowerBoundMap(), in lowerAffineLowerBound()
95 op.getLowerBoundOperands()); in lowerAffineLowerBound()
103 LogicalResult matchAndRewrite(AffineMinOp op, in matchAndRewrite() argument
106 lowerAffineMapMin(rewriter, op.getLoc(), op.getMap(), op.getOperands()); in matchAndRewrite()
110 rewriter.replaceOp(op, reduced); in matchAndRewrite()
119 LogicalResult matchAndRewrite(AffineMaxOp op, in matchAndRewrite() argument
[all …]
/llvm-project/mlir/lib/Conversion/VectorToGPU/
H A DVectorToGPU.cpp53 /// applied by taking into account the permutation map of the transfer op. If
76 // Return true if the contract op can be convert to MMA matmul.
144 // Return true if the transfer op can be converted to a MMA matrix load.
168 // Return true if the transfer op can be converted to a MMA matrix store.
187 /// converted to a MMA constant matrix op.
200 /// Return true if this integer extend op can be folded into a contract op.
212 /// Return the MMA elementwise enum associated with `op` if it is supported.
215 convertElementwiseOpToMMA(Operation *op) { in convertElementwiseOpToMMA()
216 if (isa<arith::AddFOp>(op)) in convertElementwiseOpToMMA()
213 convertElementwiseOpToMMA(Operation * op) convertElementwiseOpToMMA() argument
244 elementwiseSupportsMMAMatrixType(Operation * op) elementwiseSupportsMMAMatrixType() argument
251 extractStridedSliceSupportsMMAMatrixType(vector::ExtractStridedSliceOp op) extractStridedSliceSupportsMMAMatrixType() argument
275 supportsMMaMatrixType(Operation * op,bool useNvGpu) supportsMMaMatrixType() argument
306 getSliceContract(Operation * op,const BackwardSliceOptions & backwardSliceOptions,const ForwardSliceOptions & forwardSliceOptions) getSliceContract() argument
343 getOpToConvert(mlir::Operation * op,bool useNvGpu) getOpToConvert() argument
345 __anon1277acc40202(Operation *op) getOpToConvert() argument
351 __anon1277acc40302(Operation *op) getOpToConvert() argument
366 __anon1277acc40502(Operation *op) getOpToConvert() argument
517 inferFragType(Operation * op) inferFragType() argument
540 convertTransferReadOp(RewriterBase & rewriter,vector::TransferReadOp op,llvm::DenseMap<Value,Value> & valueMapping) convertTransferReadOp() argument
592 convertTransferWriteOp(RewriterBase & rewriter,vector::TransferWriteOp op,llvm::DenseMap<Value,Value> & valueMapping) convertTransferWriteOp() argument
637 convertConstantOpMmaSync(RewriterBase & rewriter,arith::ConstantOp op,llvm::DenseMap<Value,Value> & valueMapping) convertConstantOpMmaSync() argument
677 isTransposed(vector::TransferReadOp op) isTransposed() argument
704 creatLdMatrixCompatibleLoads(RewriterBase & rewriter,vector::TransferReadOp op,llvm::DenseMap<Value,Value> & valueMapping) creatLdMatrixCompatibleLoads() argument
766 createNonLdMatrixLoads(RewriterBase & rewriter,vector::TransferReadOp op,llvm::DenseMap<Value,Value> & valueMapping) createNonLdMatrixLoads() argument
866 convertTransferReadToLoads(RewriterBase & rewriter,vector::TransferReadOp op,llvm::DenseMap<Value,Value> & valueMapping) convertTransferReadToLoads() argument
898 convertTransferWriteToStores(RewriterBase & rewriter,vector::TransferWriteOp op,llvm::DenseMap<Value,Value> & valueMapping) convertTransferWriteToStores() argument
951 convertExtractStridedSlice(RewriterBase & rewriter,vector::ExtractStridedSliceOp op,llvm::DenseMap<Value,Value> & valueMapping) convertExtractStridedSlice() argument
1026 convertContractOp(RewriterBase & rewriter,vector::ContractionOp op,llvm::DenseMap<Value,Value> & valueMapping) convertContractOp() argument
1046 convertContractOpToMmaSync(RewriterBase & rewriter,vector::ContractionOp op,llvm::DenseMap<Value,Value> & valueMapping) convertContractOpToMmaSync() argument
1069 convertConstantOp(RewriterBase & rewriter,arith::ConstantOp op,llvm::DenseMap<Value,Value> & valueMapping) convertConstantOp() argument
1092 convertBroadcastOp(RewriterBase & rewriter,vector::BroadcastOp op,llvm::DenseMap<Value,Value> & valueMapping) convertBroadcastOp() argument
1143 convertForOp(RewriterBase & rewriter,scf::ForOp op,llvm::DenseMap<Value,Value> & valueMapping) convertForOp() argument
1176 convertYieldOp(RewriterBase & rewriter,scf::YieldOp op,llvm::DenseMap<Value,Value> & valueMapping) convertYieldOp() argument
1201 convertElementwiseOp(RewriterBase & rewriter,Operation * op,gpu::MMAElementwiseOp opType,llvm::DenseMap<Value,Value> & valueMapping) convertElementwiseOp() argument
1304 __anon1277acc40f02(Operation *op) convertVectorToNVVMCompatibleMMASync() argument
[all...]
/llvm-project/mlir/lib/Dialect/Tosa/Transforms/
H A DTosaValidation.cpp40 static LogicalResult checkConstantOperandPad(Operation *op) { in checkConstantOperandPad() argument
41 if (auto padOp = dyn_cast<tosa::PadOp>(op)) { in checkConstantOperandPad()
44 return op->emitOpError("padding of pad is not constant"); in checkConstantOperandPad()
47 // Assume this op is zero-padding if padConst is not presented. in checkConstantOperandPad()
50 return op->emitOpError("pad_const of pad is not constant"); in checkConstantOperandPad()
55 static LogicalResult checkConstantOperandTranspose(Operation *op) { in checkConstantOperandTranspose() argument
56 if (auto transposeOp = dyn_cast<tosa::TransposeOp>(op)) { in checkConstantOperandTranspose()
59 return op->emitOpError("perms of transpose is not constant"); in checkConstantOperandTranspose()
64 static LogicalResult checkConstantOperandFullyConnected(Operation *op) { in checkConstantOperandFullyConnected() argument
65 if (auto fcOp = dyn_cast<tosa::FullyConnectedOp>(op)) { in checkConstantOperandFullyConnected()
420 applyLevelCheck(Operation * op) applyLevelCheck() argument
451 CheckVariable(Operation * op) CheckVariable() argument
469 CheckVariableReadOrWrite(Operation * op) CheckVariableReadOrWrite() argument
501 applyVariableCheck(Operation * op) applyVariableCheck() argument
545 __anonc01ea8470202(Operation *op) runOnOperation() argument
[all...]
/llvm-project/llvm/lib/Target/VE/
H A DVVPISelLowering.cpp21 SDValue VETargetLowering::splitMaskArithmetic(SDValue Op, in splitMaskArithmetic() argument
23 VECustomDAG CDAG(DAG, Op); in splitMaskArithmetic()
25 CDAG.getConstant(Op.getValueType().getVectorNumElements(), MVT::i32); in splitMaskArithmetic()
26 SDValue A = Op->getOperand(0); in splitMaskArithmetic()
27 SDValue B = Op->getOperand(1); in splitMaskArithmetic()
32 unsigned Opc = Op.getOpcode(); in splitMaskArithmetic()
38 SDValue VETargetLowering::lowerToVVP(SDValue Op, SelectionDAG &DAG) const { in lowerToVVP() argument
40 const unsigned Opcode = Op->getOpcode(); in lowerToVVP()
48 VECustomDAG CDAG(DAG, Op); in lowerToVVP()
53 return lowerVVP_LOAD_STORE(Op, CDAG); in lowerToVVP()
[all …]
/llvm-project/mlir/lib/Interfaces/
H A DFunctionInterfaces.cpp27 DictionaryAttr function_interface_impl::getArgAttrDict(FunctionOpInterface op, in getArgAttrDict() argument
29 ArrayAttr attrs = op.getArgAttrsAttr(); in getArgAttrDict()
36 function_interface_impl::getResultAttrDict(FunctionOpInterface op, in getResultAttrDict() argument
38 ArrayAttr attrs = op.getResAttrsAttr(); in getResultAttrDict()
45 function_interface_impl::getArgAttrs(FunctionOpInterface op, unsigned index) { in getArgAttrs() argument
46 auto argDict = getArgAttrDict(op, index); in getArgAttrs()
51 function_interface_impl::getResultAttrs(FunctionOpInterface op, in getResultAttrs() argument
53 auto resultDict = getResultAttrDict(op, index); in getResultAttrs()
59 static ArrayAttr getArgResAttrs(FunctionOpInterface op) { in getArgResAttrs() argument
61 return op in getArgResAttrs()
68 setArgResAttrs(FunctionOpInterface op,ArrayAttr attrs) setArgResAttrs() argument
77 removeArgResAttrs(FunctionOpInterface op) removeArgResAttrs() argument
86 setAllArgResAttrDicts(FunctionOpInterface op,ArrayRef<Attribute> attrs) setAllArgResAttrDicts() argument
95 setAllArgAttrDicts(FunctionOpInterface op,ArrayRef<DictionaryAttr> attrs) setAllArgAttrDicts() argument
99 setAllArgAttrDicts(FunctionOpInterface op,ArrayRef<Attribute> attrs) setAllArgAttrDicts() argument
108 setAllResultAttrDicts(FunctionOpInterface op,ArrayRef<DictionaryAttr> attrs) setAllResultAttrDicts() argument
112 setAllResultAttrDicts(FunctionOpInterface op,ArrayRef<Attribute> attrs) setAllResultAttrDicts() argument
122 setArgResAttrDict(FunctionOpInterface op,unsigned numTotalIndices,unsigned index,DictionaryAttr attrs) setArgResAttrDict() argument
154 setArgAttrs(FunctionOpInterface op,unsigned index,ArrayRef<NamedAttribute> attributes) setArgAttrs() argument
163 setArgAttrs(FunctionOpInterface op,unsigned index,DictionaryAttr attributes) setArgAttrs() argument
172 setResultAttrs(FunctionOpInterface op,unsigned index,ArrayRef<NamedAttribute> attributes) setResultAttrs() argument
180 setResultAttrs(FunctionOpInterface op,unsigned index,DictionaryAttr attributes) setResultAttrs() argument
190 insertFunctionArguments(FunctionOpInterface op,ArrayRef<unsigned> argIndices,TypeRange argTypes,ArrayRef<DictionaryAttr> argAttrs,ArrayRef<Location> argLocs,unsigned originalNumArgs,Type newType) insertFunctionArguments() argument
236 insertFunctionResults(FunctionOpInterface op,ArrayRef<unsigned> resultIndices,TypeRange resultTypes,ArrayRef<DictionaryAttr> resultAttrs,unsigned originalNumResults,Type newType) insertFunctionResults() argument
278 eraseFunctionArguments(FunctionOpInterface op,const BitVector & argIndices,Type newType) eraseFunctionArguments() argument
301 eraseFunctionResults(FunctionOpInterface op,const BitVector & resultIndices,Type newType) eraseFunctionResults() argument
324 setFunctionType(FunctionOpInterface op,Type newType) setFunctionType() argument
[all...]
/llvm-project/mlir/test/lib/IR/
H A DTestVisitors.cpp28 static void printOperation(Operation *op) { in printOperation() argument
29 llvm::outs() << "op '" << op->getName() << "'"; in printOperation()
33 static void testPureCallbacks(Operation *op) { in testPureCallbacks() argument
34 auto opPure = [](Operation *op) { in testPureCallbacks() argument
36 printOperation(op); in testPureCallbacks()
50 llvm::outs() << "Op pre-order visits" in testPureCallbacks()
52 op->walk<WalkOrder::PreOrder>(opPure); in testPureCallbacks()
55 op->walk<WalkOrder::PreOrder>(blockPure); in testPureCallbacks()
58 op->walk<WalkOrder::PreOrder>(regionPure); in testPureCallbacks()
60 llvm::outs() << "Op post-order visits" in testPureCallbacks()
[all …]
/llvm-project/mlir/test/lib/Dialect/Test/
H A DTestPatterns.cpp40 OpSymbolBindingNoResult op) { in handleNoResultOp()
41 // Turn the no result op to a one-result op.
42 rewriter.create<OpSymbolBindingB>(op.getLoc(), op.getOperand().getType(), in getFirstI32Result() argument
43 op.getOperand()); in getFirstI32Result()
46 static bool getFirstI32Result(Operation *op, Value &value) { in getFirstI32Result()
47 if (!Type(op->getResult(0).getType()).isSignlessInteger(32)) in getFirstI32Result()
49 value = op->getResult(0); in bindNativeCodeCallResult()
93 LogicalResult matchAndRewrite(Operation *op, in matchAndRewrite()
36 handleNoResultOp(PatternRewriter & rewriter,OpSymbolBindingNoResult op) handleNoResultOp() argument
407 __anon5e52a6500502(Operation *op) runOnOperation() argument
457 matchAndRewrite(Operation * op,PatternRewriter & rewriter) const matchAndRewrite() argument
479 matchAndRewrite(Operation * op,PatternRewriter & rewriter) const matchAndRewrite() argument
506 matchAndRewrite(Operation * op,PatternRewriter & rewriter) const matchAndRewrite() argument
531 matchAndRewrite(Operation * op,PatternRewriter & rewriter) const matchAndRewrite() argument
552 matchAndRewrite(Operation * op,PatternRewriter & rewriter) const matchAndRewrite() argument
572 invokeCreateWithInferredReturnType(Operation * op) invokeCreateWithInferredReturnType() argument
598 reifyReturnShape(Operation * op) reifyReturnShape() argument
627 for (auto &op : getOperation().getBody().front()) runOnOperation() local
630 for (auto *op : llvm::ArrayRef(ops).drop_back()) { runOnOperation() local
645 for (auto &op : getOperation().getBody().front()) runOnOperation() local
649 for (auto *op : ops) runOnOperation() local
1137 __anon5e52a6501102(TestReturnOp op) runOnOperation() argument
1142 __anon5e52a6501302(func::FuncOp op) runOnOperation() argument
1147 __anon5e52a6501402(func::CallOp op) runOnOperation() argument
1156 __anon5e52a6501602(TestTypeProducerOp op) runOnOperation() argument
1157 __anon5e52a6501702(TestTypeConsumerOp op) runOnOperation() argument
1162 __anon5e52a6501802(Operation *op) runOnOperation() argument
1169 __anon5e52a6501902(TestRecursiveRewriteOp op) runOnOperation() argument
1173 __anon5e52a6501a02(TestOpInPlaceSelfFold op) runOnOperation() argument
1187 for (auto *op : unlegalizedOps) runOnOperation() local
1195 __anon5e52a6501b02(Operation *op) runOnOperation() argument
1221 for (auto *op : legalizedOps) runOnOperation() local
1341 __anon5e52a6501f02(TestTypeProducerOp op) runOnOperation() argument
1342 __anon5e52a6502002(TestTypeConsumerOp op) runOnOperation() argument
1350 __anon5e52a6502102(Operation *op) runOnOperation() argument
1645 __anon5e52a6502c02(TestTypeProducerOp op) runOnOperation() argument
1651 __anon5e52a6502d02(func::FuncOp op) runOnOperation() argument
1655 __anon5e52a6502e02(TestCastOp op) runOnOperation() argument
1660 __anon5e52a6502f02(TestSignatureConversionNoConverterOp op) runOnOperation() argument
1824 __anon5e52a6503702(TestMergeBlocksOp op) runOnOperation() argument
1829 __anon5e52a6503802(TestBranchOp op) runOnOperation() argument
1836 __anon5e52a6503902(SingleBlockImplicitTerminatorOp op) runOnOperation() argument
1845 for (auto *op : unlegalizedOps) runOnOperation() local
[all...]
/llvm-project/mlir/test/Dialect/LLVMIR/
H A Dtypes.mlir6 "some.op"() : () -> !llvm.void
8 "some.op"() : () -> !llvm.ppc_fp128
10 "some.op"() : () -> !llvm.token
12 "some.op"() : () -> !llvm.label
14 "some.op"() : () -> !llvm.metadata
21 "some.op"() : () -> !llvm.func<void ()>
23 "some.op"() : () -> !llvm.func<void (i32)>
25 "some.op"() : () -> !llvm.func<i32 ()>
27 "some.op"() : () -> !llvm.func<i32 (f16, bf16, f32, f64)>
29 "some.op"()
[all...]
/llvm-project/mlir/unittests/TableGen/
H A DOpBuildGen.cpp47 // Verify that `op` has the given set of result types, operands, and
54 Operation *op = concreteOp.getOperation(); in verifyOp() local
56 EXPECT_EQ(op->getNumResults(), resultTypes.size()); in verifyOp()
57 for (unsigned idx : llvm::seq(0U, op->getNumResults())) in verifyOp()
58 EXPECT_EQ(op->getResult(idx).getType(), resultTypes[idx]); in verifyOp()
60 EXPECT_EQ(op->getNumOperands(), operands.size()); in verifyOp()
61 for (unsigned idx : llvm::seq(0U, op->getNumOperands())) in verifyOp()
62 EXPECT_EQ(op->getOperand(idx), operands[idx]); in verifyOp()
64 EXPECT_EQ(op->getAttrs().size(), attrs.size()); in verifyOp()
66 EXPECT_EQ(op->getAttr(attrs[idx].getName().strref()), in verifyOp()
[all …]
/llvm-project/mlir/test/Dialect/Affine/
H A Dslicing-utils.mlir31 // FWDBWD: %[[v1:.*]] = "slicing-test-op"() : () -> i1
32 // FWDBWD: %[[v2:.*]] = "slicing-test-op"() : () -> i2
33 // FWDBWD: %[[v3:.*]] = "slicing-test-op"() : () -> i3
34 // FWDBWD: %[[v4:.*]] = "slicing-test-op"() : () -> i4
35 // FWDBWD: %[[v5:.*]] = "slicing-test-op"(%[[v1]], %[[v2]]) : (i1, i2) -> i5
36 // FWDBWD: %[[v6:.*]] = "slicing-test-op"(%[[v3]], %[[v4]]) : (i3, i4) -> i6
37 // FWDBWD: %[[v7:.*]] = "slicing-test-op"(%[[v1]], %[[v5]]) : (i1, i5) -> i7
38 // FWDBWD: %[[v8:.*]] = "slicing-test-op"(%[[v5]], %[[v6]]) : (i5, i6) -> i8
39 // FWDBWD: %[[v9:.*]] = "slicing-test-op"(%[[v7]], %[[v8]]) : (i7, i8) -> i9
41 %1 = "slicing-test-op" () : () -> i1
[all …]
/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVInstrInfo.td35 : Op<opCode, (outs ID:$dst), (ins TYPE:$src_ty, ID:$src, ID:$src2),
39 : Op<opCode, (outs CID:$dst), (ins TYPE:$src_ty, CID:$src, CID:$src2),
44 : Op<opCode, (outs CID:$dst), (ins TYPE:$src_ty, CCond:$cond, CID:$src1, CID:$src2),
91 : Op<opCode, (outs ID:$dst), (ins TYPE:$type, ID:$src),
94 : Op<opCode, (outs CID:$dst), (ins TYPE:$src_ty, CID:$src),
97 class SimpleOp<string name, bits<16> opCode>: Op<opCode, (outs), (ins), name>;
102 def OpUndef: Op<1, (outs ID:$res), (ins TYPE:$type), "$res = OpUndef $type">;
103 def OpSizeOf: Op<321, (outs ID:$res), (ins TYPE:$ty, ID:$ptr), "$res = OpSizeOf $ty $ptr">;
106 def OpAssumeTrueKHR: Op<5630, (outs), (ins ID:$cond), "OpAssumeTrueKHR $cond">;
107 def OpExpectKHR: Op<563
[all...]
/llvm-project/llvm/test/Other/
H A Dpass-pipeline-parsing.ll2 ; RUN: -passes=no-op-module,no-op-module %s 2>&1 \
8 ; RUN: -passes='module(no-op-module,no-op-module)' %s 2>&1 \
14 ; RUN: -passes=no-op-function,no-op-function %s 2>&1 \
20 ; RUN: -passes='function(no-op-function,no-op-function)' %s 2>&1 \
26 ; RUN: -passes='no-op-module,function(no-op
[all...]
/llvm-project/mlir/lib/Dialect/SparseTensor/Transforms/
H A DBufferizableOpInterfaceImpl.cpp32 LogicalResult bufferize(Operation *op, RewriterBase &rewriter, in bufferize()
34 return op->emitError( in bufferize()
42 bool bufferizesToAllocation(Operation *op, Value value) const { return true; } in bufferizesToAllocation()
44 bool bufferizesToMemoryRead(Operation *op, OpOperand &opOperand, in bufferizesToMemoryRead()
49 bool bufferizesToMemoryWrite(Operation *op, OpOperand &opOperand, in bufferizesToMemoryWrite()
54 AliasingValueList getAliasingValues(Operation *op, OpOperand &opOperand, in getAliasingValues()
59 bool isWritable(Operation *op, Value value, in isWritable()
67 bool bufferizesToAllocation(Operation *op, Value value) const { in bufferizesToAllocation()
73 bool bufferizesToMemoryRead(Operation *op, OpOperand &opOperand, in bufferizesToMemoryRead()
78 bool bufferizesToMemoryWrite(Operation *op, OpOperand &opOperand, in bufferizesToMemoryWrite()
[all …]
/llvm-project/mlir/lib/IR/
H A DOperation.cpp35 Operation *op = in create() local
42 op->setPropertiesFromAttribute(state.propertiesAttr, in create()
44 assert(result.succeeded() && "invalid properties in op creation"); in create()
47 return op; in create()
57 Operation *op = in create() local
62 op->getRegion(i).takeBody(*regions[i]); in create()
63 return op; in create()
118 Operation *op = ::new (rawMem) Operation( in create() local
122 assert((numSuccessors == 0 || op->mightHaveTrait<OpTrait::IsTerminator>()) && in create()
128 new (op in create()
491 deleteNode(Operation * op) deleteNode() argument
503 addNodeToList(Operation * op) addNodeToList() argument
513 removeNodeFromList(Operation * op) removeNodeFromList() argument
585 for (auto &op : getOpOperands()) dropAllReferences() local
613 checkFoldResultTypes(Operation * op,SmallVectorImpl<OpFoldResult> & results) checkFoldResultTypes() argument
771 print(Operation * op,OpAsmPrinter & p,StringRef defaultDialect) print() argument
782 printOpName(Operation * op,OpAsmPrinter & p,StringRef defaultDialect) printOpName() argument
853 foldCommutative(Operation * op,ArrayRef<Attribute> operands,SmallVectorImpl<OpFoldResult> & results) foldCommutative() argument
870 foldIdempotent(Operation * op) foldIdempotent() argument
884 foldInvolution(Operation * op) foldInvolution() argument
894 verifyZeroOperands(Operation * op) verifyZeroOperands() argument
900 verifyOneOperand(Operation * op) verifyOneOperand() argument
906 verifyNOperands(Operation * op,unsigned numOperands) verifyNOperands() argument
915 verifyAtLeastNOperands(Operation * op,unsigned numOperands) verifyAtLeastNOperands() argument
936 verifyIsIdempotent(Operation * op) verifyIsIdempotent() argument
944 verifyIsInvolution(Operation * op) verifyIsInvolution() argument
953 verifyOperandsAreSignlessIntegerLike(Operation * op) verifyOperandsAreSignlessIntegerLike() argument
962 verifyOperandsAreFloatLike(Operation * op) verifyOperandsAreFloatLike() argument
971 verifySameTypeOperands(Operation * op) verifySameTypeOperands() argument
984 verifyZeroRegions(Operation * op) verifyZeroRegions() argument
990 verifyOneRegion(Operation * op) verifyOneRegion() argument
996 verifyNRegions(Operation * op,unsigned numRegions) verifyNRegions() argument
1003 verifyAtLeastNRegions(Operation * op,unsigned numRegions) verifyAtLeastNRegions() argument
1010 verifyZeroResults(Operation * op) verifyZeroResults() argument
1016 verifyOneResult(Operation * op) verifyOneResult() argument
1022 verifyNResults(Operation * op,unsigned numOperands) verifyNResults() argument
1029 verifyAtLeastNResults(Operation * op,unsigned numOperands) verifyAtLeastNResults() argument
1037 verifySameOperandsShape(Operation * op) verifySameOperandsShape() argument
1047 verifySameOperandsAndResultShape(Operation * op) verifySameOperandsAndResultShape() argument
1062 verifySameOperandsElementType(Operation * op) verifySameOperandsElementType() argument
1076 verifySameOperandsAndResultElementType(Operation * op) verifySameOperandsAndResultElementType() argument
1100 verifySameOperandsAndResultType(Operation * op) verifySameOperandsAndResultType() argument
1135 verifySameOperandsAndResultRank(Operation * op) verifySameOperandsAndResultRank() argument
1180 verifyIsTerminator(Operation * op) verifyIsTerminator() argument
1188 verifyTerminatorSuccessors(Operation * op) verifyTerminatorSuccessors() argument
1198 verifyZeroSuccessors(Operation * op) verifyZeroSuccessors() argument
1206 verifyOneSuccessor(Operation * op) verifyOneSuccessor() argument
1213 verifyNSuccessors(Operation * op,unsigned numSuccessors) verifyNSuccessors() argument
1222 verifyAtLeastNSuccessors(Operation * op,unsigned numSuccessors) verifyAtLeastNSuccessors() argument
1232 verifyResultsAreBoolLike(Operation * op) verifyResultsAreBoolLike() argument
1243 verifyResultsAreFloatLike(Operation * op) verifyResultsAreFloatLike() argument
1252 verifyResultsAreSignlessIntegerLike(Operation * op) verifyResultsAreSignlessIntegerLike() argument
1259 verifyValueSizeAttr(Operation * op,StringRef attrName,StringRef valueGroupName,size_t expectedCount) verifyValueSizeAttr() argument
1285 verifyOperandSizeAttr(Operation * op,StringRef attrName) verifyOperandSizeAttr() argument
1290 verifyResultSizeAttr(Operation * op,StringRef attrName) verifyResultSizeAttr() argument
1295 verifyNoRegionArguments(Operation * op) verifyNoRegionArguments() argument
1310 verifyElementwise(Operation * op) verifyElementwise() argument
1393 hasElementwiseMappableTraits(Operation * op) hasElementwiseMappableTraits() argument
[all...]

12345678910>>...156