Home
last modified time | relevance | path

Searched refs:i32Type (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/Transforms/
H A DOptimizeForNVVM.cpp51 Type i32Type = rewriter.getI32Type(); in matchAndRewrite() local
69 loc, i32Type, rewriter.getUI32IntegerAttr(0x7f800000)); in matchAndRewrite()
70 Value cast = rewriter.create<LLVM::BitcastOp>(loc, i32Type, approx); in matchAndRewrite()
71 Value exp = rewriter.create<LLVM::AndOp>(loc, i32Type, cast, mask); in matchAndRewrite()
73 loc, i32Type, rewriter.getUI32IntegerAttr(0)); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/
H A DUnifyAliasedResourcePass.cpp351 auto i32Type = rewriter.getI32Type(); in matchAndRewrite() local
363 loc, i32Type, rewriter.getI32IntegerAttr(ratio)); in matchAndRewrite()
368 rewriter.create<spirv::SDivOp>(loc, i32Type, oldIndex, ratioValue); in matchAndRewrite()
370 rewriter.create<spirv::SModOp>(loc, i32Type, oldIndex, ratioValue)); in matchAndRewrite()
386 loc, i32Type, rewriter.getI32IntegerAttr(ratio)); in matchAndRewrite()
391 rewriter.create<spirv::IMulOp>(loc, i32Type, oldIndex, ratioValue); in matchAndRewrite()
449 auto i32Type = rewriter.getI32Type(); in matchAndRewrite() local
450 Value oneValue = spirv::ConstantOp::getOne(i32Type, loc, rewriter); in matchAndRewrite()
454 indices.back() = rewriter.create<spirv::IAddOp>(loc, i32Type, in matchAndRewrite()
/llvm-project-15.0.7/mlir/unittests/Dialect/SPIRV/
H A DDeserializationTest.cpp257 auto i32Type = addIntType(32); in TEST_F() local
258 auto fnType = addFunctionType(voidType, {i32Type}); in TEST_F()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Test/
H A DTestPatterns.cpp447 Type i32Type = rewriter.getIntegerType(32); in matchAndRewrite() local
449 rewriter.createBlock(&region, region.end(), {i32Type, i32Type}, {loc, loc}); in matchAndRewrite()
465 Type i32Type = rewriter.getIntegerType(32); in matchAndRewrite() local
467 rewriter.createBlock(&region, region.end(), {i32Type, i32Type}, {loc, loc}); in matchAndRewrite()
469 rewriter.create<ILLegalOpF>(loc, i32Type); in matchAndRewrite()
H A DTestOps.td1534 auto i32Type = $_builder.getIntegerType(32);
1535 $_state.addTypes(i32Type); // $output1
1536 SmallVector<Type, 4> types(count.getInt(), i32Type);
/llvm-project-15.0.7/flang/unittests/Optimizer/Builder/
H A DFIRBuilderTest.cpp210 auto i32Type = IntegerType::get(builder.getContext(), 32); in TEST_F() local
211 auto attr = builder.getIntegerAttr(i32Type, 16); in TEST_F()
213 loc, i32Type, "global2", builder.createLinkOnceLinkage(), attr, false); in TEST_F()
217 EXPECT_EQ(i32Type, global.getType()); in TEST_F()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVOps.cpp268 Type i32Type = parser.getBuilder().getIntegerType(32); in parseMemoryAccessAttributes() local
270 parser.parseAttribute(alignmentAttr, i32Type, kAlignmentAttrName, in parseMemoryAccessAttributes()
299 Type i32Type = parser.getBuilder().getIntegerType(32); in parseSourceMemoryAccessAttributes() local
612 Type i32Type = parser.getBuilder().getIntegerType(32); in parseVariableDecorations() local
614 parser.parseAttribute(set, i32Type, descriptorSetName, in parseVariableDecorations()
617 parser.parseAttribute(binding, i32Type, bindingName, in parseVariableDecorations()
874 Type i32Type = parser.getBuilder().getIntegerType(32); in parseGroupNonUniformArithmeticOp() local
1552 auto i32Type = builder.getIntegerType(32); in parse() local
1553 if (parser.parseAttribute(trueWeight, i32Type, "weight", weights) || in parse()
2141 Type i32Type = parser.getBuilder().getIntegerType(32); in parse() local
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/
H A DGPUOpsLowering.cpp85 auto i32Type = IntegerType::get(rewriter.getContext(), 32); in matchAndRewrite() local
89 zero = rewriter.create<LLVM::ConstantOp>(loc, i32Type, in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/MemRef/IR/
H A DMemRefOps.cpp1403 auto i32Type = parser.getBuilder().getIntegerType(32); in parse() local
1409 parser.parseAttribute(localityHint, i32Type, "localityHint", in parse()
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/IR/
H A DAffineOps.cpp3136 auto i32Type = parser.getBuilder().getIntegerType(32); in parse() local
3148 parser.parseAttribute(hintInfo, i32Type, in parse()