Home
last modified time | relevance | path

Searched refs:intTy (Results 1 – 20 of 20) sorted by relevance

/llvm-project-15.0.7/mlir/lib/IR/
H A DTypes.cpp32 if (auto intTy = dyn_cast<IntegerType>()) in isInteger() local
33 return intTy.getWidth() == width; in isInteger()
38 if (auto intTy = dyn_cast<IntegerType>()) in isSignlessInteger() local
39 return intTy.isSignless(); in isSignlessInteger()
44 if (auto intTy = dyn_cast<IntegerType>()) in isSignlessInteger() local
45 return intTy.isSignless() && intTy.getWidth() == width; in isSignlessInteger()
50 if (auto intTy = dyn_cast<IntegerType>()) in isSignedInteger() local
51 return intTy.isSigned(); in isSignedInteger()
57 return intTy.isSigned() && intTy.getWidth() == width; in isSignedInteger()
63 return intTy.isUnsigned(); in isUnsignedInteger()
[all …]
/llvm-project-15.0.7/mlir/unittests/IR/
H A DAttributeTest.cpp96 IntegerType intTy = IntegerType::get(&context, intWidth); in TEST() local
99 testSplat(intTy, value); in TEST()
104 IntegerType intTy = IntegerType::get(&context, 32); in TEST() local
107 testSplat(intTy, value); in TEST()
112 IntegerType intTy = IntegerType::get(&context, 85); in TEST() local
113 Attribute value = IntegerAttr::get(intTy, 109); in TEST()
115 testSplat(intTy, value); in TEST()
199 IntegerType intTy = IntegerType::get(&context, 32); in TEST() local
200 Attribute value = IntegerAttr::get(intTy, elementValue); in TEST()
211 IntegerType intTy = IntegerType::get(&context, 32); in TEST() local
[all …]
/llvm-project-15.0.7/flang/lib/Optimizer/Builder/Runtime/
H A DReduction.cpp30 return mlir::FunctionType::get(ctx, {boxTy, strTy, intTy, intTy, boxTy}, in getTypeModel()
46 return mlir::FunctionType::get(ctx, {boxTy, strTy, intTy, intTy, boxTy}, in getTypeModel()
63 return mlir::FunctionType::get(ctx, {boxTy, strTy, intTy, intTy, boxTy}, in getTypeModel()
79 return mlir::FunctionType::get(ctx, {boxTy, strTy, intTy, intTy, boxTy}, in getTypeModel()
95 return mlir::FunctionType::get(ctx, {boxTy, strTy, intTy, intTy, boxTy}, in getTypeModel()
112 return mlir::FunctionType::get(ctx, {boxTy, strTy, intTy, intTy, boxTy}, in getTypeModel()
128 return mlir::FunctionType::get(ctx, {boxTy, strTy, intTy, intTy, boxTy}, in getTypeModel()
180 ctx, {resTy, boxTy, strTy, intTy, intTy, boxTy}, {}); in getTypeModel()
198 ctx, {resTy, boxTy, strTy, intTy, intTy, boxTy}, {}); in getTypeModel()
348 ctx, {resTy, boxTy, strTy, intTy, intTy, boxTy}, {}); in getTypeModel()
[all …]
H A DNumeric.cpp31 auto intTy = mlir::IntegerType::get(ctx, 32); in getTypeModel() local
32 return mlir::FunctionType::get(ctx, fltTy, intTy); in getTypeModel()
42 auto intTy = mlir::IntegerType::get(ctx, 64); in getTypeModel() local
43 return mlir::FunctionType::get(ctx, fltTy, intTy); in getTypeModel()
54 auto intTy = mlir::IntegerType::get(ctx, 32); in getTypeModel() local
55 return mlir::FunctionType::get(ctx, fltTy, intTy); in getTypeModel()
65 auto intTy = mlir::IntegerType::get(ctx, 64); in getTypeModel() local
145 auto intTy = mlir::IntegerType::get(ctx, 64); in getTypeModel() local
157 auto intTy = mlir::IntegerType::get(ctx, 64); in getTypeModel() local
169 auto intTy = mlir::IntegerType::get(ctx, 64); in getTypeModel() local
[all …]
/llvm-project-15.0.7/clang/test/FixIt/
H A Dfixit-function-call.cpp9 typedef int intTy; typedef
14 void f1(intTy &a);
42 void m(intTy &a, int *b); // match 1
/llvm-project-15.0.7/flang/unittests/Optimizer/Builder/Runtime/
H A DCommandTest.cpp22 mlir::Type intTy = firBuilder->getDefaultIntegerType(); in TEST_F() local
24 mlir::Value number = firBuilder->create<fir::UndefOp>(loc, intTy); in TEST_F()
35 mlir::Type intTy = firBuilder->getDefaultIntegerType(); in TEST_F() local
36 mlir::Value number = firBuilder->create<fir::UndefOp>(loc, intTy); in TEST_F()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DSwiftCallingConv.cpp236 if (auto intTy = dyn_cast<llvm::IntegerType>(type)) { in addTypedData() local
237 if (!isLegalIntegerType(CGM, intTy)) in addTypedData()
673 llvm::IntegerType *intTy) { in isLegalIntegerType() argument
674 auto size = intTy->getBitWidth(); in isLegalIntegerType()
H A DTargetInfo.cpp142 } else if (auto intTy = dyn_cast<llvm::IntegerType>(type)) { in occupiesMoreThan() local
144 intCount += (intTy->getBitWidth() + ptrWidth - 1) / ptrWidth; in occupiesMoreThan()
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DTypeConverter.h76 addConversion([&](fir::IntegerType intTy) { in LLVMTypeConverter()
78 &getContext(), kindMapping.getIntegerBitsize(intTy.getFKind())); in LLVMTypeConverter()
H A DCodeGen.cpp633 mlir::Type intTy = rewriter.getIntegerType(bits); in matchAndRewrite() local
642 intTy, in matchAndRewrite()
645 rewriter.create<mlir::LLVM::ConstantOp>(loc, intTy, elemAttr); in matchAndRewrite()
/llvm-project-15.0.7/clang/include/clang/CodeGen/
H A DConstantInitBuilder.h197 void addInt(llvm::IntegerType *intTy, uint64_t value,
199 add(llvm::ConstantInt::get(intTy, value, isSigned));
/llvm-project-15.0.7/mlir/lib/Conversion/VectorToLLVM/
H A DConvertVectorToLLVM.cpp1064 } else if (auto intTy = eltType.dyn_cast<IntegerType>()) { in matchAndRewrite() local
1068 unsigned width = intTy.getWidth(); in matchAndRewrite()
1069 if (intTy.isUnsigned()) { in matchAndRewrite()
1079 assert(intTy.isSignless() || intTy.isSigned()); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/
H A DArithmeticOps.cpp1117 IntegerType intTy = resEleType.cast<IntegerType>(); in fold() local
1119 APSInt api(intTy.getWidth(), /*isUnsigned=*/true); in fold()
1143 IntegerType intTy = resEleType.cast<IntegerType>(); in fold() local
1145 APSInt api(intTy.getWidth(), /*isUnsigned=*/false); in fold()
1512 auto intTy = intVal.getType().cast<IntegerType>(); in matchAndRewrite() local
1513 auto intWidth = intTy.getWidth(); in matchAndRewrite()
/llvm-project-15.0.7/mlir/test/lib/Dialect/Test/
H A DTestPatterns.cpp1359 converter.addConversion([](IntegerType intTy) -> Type { in runOnOperation() argument
1360 if (intTy.getWidth() == 16) in runOnOperation()
1361 return IntegerType::get(intTy.getContext(), 64); in runOnOperation()
1362 return intTy; in runOnOperation()
/llvm-project-15.0.7/flang/lib/Optimizer/Dialect/
H A DFIRType.cpp599 mlir::Type intTy; in parse() local
601 parser.parseType(intTy)) { in parse()
605 lenParamList.emplace_back(lenparam, intTy); in parse()
/llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/
H A DTosaToLinalg.cpp388 auto intTy = elementTy.cast<IntegerType>(); in createLinalgBodyCalculationForElementwiseOp() local
394 if (intTy.isUnsignedInteger()) { in createLinalgBodyCalculationForElementwiseOp()
398 APInt::getMaxValue(intTy.getIntOrFloatBitWidth()).getSExtValue()); in createLinalgBodyCalculationForElementwiseOp()
401 min, APInt::getSignedMinValue(intTy.getIntOrFloatBitWidth()) in createLinalgBodyCalculationForElementwiseOp()
404 max, APInt::getSignedMaxValue(intTy.getIntOrFloatBitWidth()) in createLinalgBodyCalculationForElementwiseOp()
409 loc, min, intTy.getIntOrFloatBitWidth()); in createLinalgBodyCalculationForElementwiseOp()
411 loc, max, intTy.getIntOrFloatBitWidth()); in createLinalgBodyCalculationForElementwiseOp()
/llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMTypes.cpp975 .Case<IntegerType>([](IntegerType intTy) { in getPrimitiveTypeSizeInBits() argument
976 return llvm::TypeSize::Fixed(intTy.getWidth()); in getPrimitiveTypeSizeInBits()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DBuiltinAttributes.td635 IntegerType intTy = type.cast<IntegerType>();
636 APInt apValue(intTy.getWidth(), value, intTy.isSignedInteger());
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVOps.cpp1974 IntegerType intTy = type.dyn_cast<IntegerType>(); in getAsmResultNames() local
1977 if (intTy && intTy.getWidth() == 1) { in getAsmResultNames()
1981 if (intTy.isSignless()) { in getAsmResultNames()
1988 if (intTy || type.isa<FloatType>()) { in getAsmResultNames()
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVInstructionSelector.cpp136 const SPIRVType *intTy, const SPIRVType *boolTy,