| /llvm-project-15.0.7/llvm/test/Instrumentation/SanitizerCoverage/ |
| H A D | stack-depth.ll | 28 ; CHECK: [[frameInt:%[^ \t]+]] = ptrtoint i8* [[framePtr]] to [[intType:i[0-9]+]] 29 ; CHECK: [[lowest:%[^ \t]+]] = load [[intType]], [[intType]]* @__sancov_lowest_stack 30 ; CHECK: [[cmp:%[^ \t]+]] = icmp ult [[intType]] [[frameInt]], [[lowest]] 33 ; CHECK: store [[intType]] [[frameInt]], [[intType]]* @__sancov_lowest_stack
|
| /llvm-project-15.0.7/mlir/lib/Conversion/MathToSPIRV/ |
| H A D | MathToSPIRV.cpp | 80 Type intType = rewriter.getIntegerType(bitwidth); in matchAndRewrite() local 84 loc, intType, rewriter.getIntegerAttr(intType, intValue)); in matchAndRewrite() 86 loc, intType, rewriter.getIntegerAttr(intType, intValue - 1u)); in matchAndRewrite() 91 intType = VectorType::get(count, intType); in matchAndRewrite() 95 rewriter.create<spirv::CompositeConstructOp>(loc, intType, signSplat); in matchAndRewrite() 98 valueMask = rewriter.create<spirv::CompositeConstructOp>(loc, intType, in matchAndRewrite() 103 rewriter.create<spirv::BitcastOp>(loc, intType, adaptor.getLhs()); in matchAndRewrite() 105 rewriter.create<spirv::BitcastOp>(loc, intType, adaptor.getRhs()); in matchAndRewrite() 108 loc, intType, ValueRange{lhsCast, valueMask}); in matchAndRewrite() 110 loc, intType, ValueRange{rhsCast, signMask}); in matchAndRewrite() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | DataLayoutInterfaces.cpp | 90 findEntryForIntegerType(IntegerType intType, in findEntryForIntegerType() argument 98 auto iter = sortedParams.lower_bound(intType.getWidth()); in findEntryForIntegerType() 112 getIntegerTypeABIAlignment(IntegerType intType, in getIntegerTypeABIAlignment() argument 115 return intType.getWidth() < 64 in getIntegerTypeABIAlignment() 120 return extractABIAlignment(findEntryForIntegerType(intType, params)); in getIntegerTypeABIAlignment() 148 if (auto intType = type.dyn_cast<IntegerType>()) in getDefaultABIAlignment() local 149 return getIntegerTypeABIAlignment(intType, params); in getDefaultABIAlignment() 167 getIntegerTypePreferredAlignment(IntegerType intType, in getIntegerTypePreferredAlignment() argument 171 return llvm::PowerOf2Ceil(dataLayout.getTypeSize(intType)); in getIntegerTypePreferredAlignment() 198 if (auto intType = type.dyn_cast<IntegerType>()) in getDefaultPreferredAlignment() local [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | EnumAttr.td | 35 SignlessIntegerAttrBase<intType, "case " # strVal> { 52 SignlessIntegerAttrBase<intType, "case " #str>; 79 assert !and(!ge(pos, 0), !lt(pos, intType.bitwidth)), 96 class BitEnumAttrCaseGroup<I intType, string sym, 98 : BitEnumAttrCaseBase<intType, sym, 201 SignlessIntegerAttrBase<intType, summary> { 203 SignlessIntegerAttrBase<intType, summary>.predicate, 207 class IntEnumAttr<I intType, string name, string summary, 210 IntEnumAttrBase<intType, cases, 251 : SignlessIntegerAttrBase<intType, summary> { [all …]
|
| /llvm-project-15.0.7/mlir/unittests/TableGen/ |
| H A D | EnumsGenTest.cpp | 177 mlir::Type intType = mlir::IntegerType::get(&ctx, 32); in TEST() local 178 mlir::Attribute intAttr = mlir::IntegerAttr::get(intType, 5); in TEST() 186 mlir::Type intType = mlir::IntegerType::get(&ctx, 32); in TEST() local 188 intType, in TEST() 194 intType, static_cast<uint32_t>(BitEnumWithGroup::Bits0To3) | (1u << 6)); in TEST()
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | Types.cpp | 93 if (auto intType = dyn_cast<IntegerType>()) in getIntOrFloatBitWidth() local 94 return intType.getWidth(); in getIntOrFloatBitWidth()
|
| H A D | BuiltinAttributes.cpp | 1155 auto intType = type.dyn_cast<IntegerType>(); in isValidIntOrFloat() local 1156 if (!intType) in isValidIntOrFloat() 1160 if (intType.isSignless()) in isValidIntOrFloat() 1162 return intType.isSigned() ? isSigned : !isSigned; in isValidIntOrFloat()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUToVulkan/ |
| H A D | ConvertLaunchFuncToVulkanCalls.cpp | 139 if (auto intType = type.dyn_cast<IntegerType>()) { in stringifyType() local 140 if (intType.getWidth() == 32) in stringifyType() 142 if (intType.getWidth() == 16) in stringifyType() 144 if (intType.getWidth() == 8) in stringifyType()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/ |
| H A D | LLVMTypes.cpp | 731 if (auto intType = type.dyn_cast<IntegerType>()) in isValidElementType() local 732 return intType.isSignless(); in isValidElementType() 786 if (auto intType = type.dyn_cast<IntegerType>()) in isCompatibleOuterType() local 787 return intType.isSignless(); in isCompatibleOuterType() 813 .Case<IntegerType>([](auto intType) { return intType.isSignless(); }) in isCompatibleImpl() argument 880 if (auto intType = elementType.dyn_cast<IntegerType>()) in isCompatibleVectorType() local 881 return intType.isSignless(); in isCompatibleVectorType()
|
| H A D | LLVMDialect.cpp | 2534 auto intType = valType.dyn_cast<IntegerType>(); in verify() local 2535 unsigned intBitWidth = intType ? intType.getWidth() : 0; in verify() 2542 auto intType = valType.dyn_cast<IntegerType>(); in verify() local 2543 unsigned intBitWidth = intType ? intType.getWidth() : 0; in verify() 2608 auto intType = valType.dyn_cast<IntegerType>(); in verify() local 2609 unsigned intBitWidth = intType ? intType.getWidth() : 0; in verify()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SCFToOpenMP/ |
| H A D | SCFToOpenMP.cpp | 161 auto intType = type.cast<IntegerType>(); in minMaxValueForSignedInt() local 162 unsigned bitwidth = intType.getWidth(); in minMaxValueForSignedInt() 171 auto intType = type.cast<IntegerType>(); in minMaxValueForUnsignedInt() local 172 unsigned bitwidth = intType.getWidth(); in minMaxValueForUnsignedInt()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Builder/ |
| H A D | Character.cpp | 575 auto intType = builder.getIntegerType(bits); in createBlankConstantCode() local 576 return builder.createIntegerConstant(loc, intType, ' '); in createBlankConstantCode() 646 auto intType = builder.getIntegerType(bits); in createSingletonFromCode() local 647 auto cast = builder.createConvert(loc, intType, code); in createSingletonFromCode() 659 auto intType = builder.getIntegerType(bits); in extractCodeFromSingleton() local 661 return builder.create<fir::ExtractValueOp>(loc, intType, singleton, in extractCodeFromSingleton()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/ |
| H A D | SPIRVConversion.cpp | 291 auto intType = type.cast<IntegerType>(); local 294 intType.getSignedness()); 502 addConversion([this](IntegerType intType) -> Optional<Type> { in SPIRVTypeConverter() argument 503 if (auto scalarType = intType.dyn_cast<spirv::ScalarType>()) in SPIRVTypeConverter()
|
| /llvm-project-15.0.7/mlir/lib/Target/SPIRV/Serialization/ |
| H A D | Serializer.cpp | 386 if (auto intType = type.dyn_cast<IntegerType>()) { in prepareBasicType() local 387 if (intType.getWidth() == 1) { in prepareBasicType() 393 operands.push_back(intType.getWidth()); in prepareBasicType() 398 operands.push_back(intType.isSigned() ? 1 : 0); in prepareBasicType()
|
| /llvm-project-15.0.7/clang/utils/ABITest/ |
| H A D | ABITestGen.py | 520 intType = BuiltinType('int',4) 524 sbtg = FixedTypeGenerator([charType, intType, floatType, doubleType]) 552 'i32' : intType,
|
| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | Runtime.cpp | 354 if (auto intType = fir::unwrapRefType(type).dyn_cast<mlir::IntegerType>()) in genSystemClock() local 355 integerKind = intType.getWidth() / 8; in genSystemClock()
|
| H A D | IntrinsicCall.cpp | 2115 if (auto intType = type.dyn_cast<mlir::IntegerType>()) { in genAbs() local 2119 builder.createIntegerConstant(loc, intType, intType.getWidth() - 1); in genAbs() 3029 mlir::Type intType = builder.getIntegerType( in genIeeeIsFinite() local 3032 builder.create<mlir::arith::BitcastOp>(loc, intType, floatVal); in genIeeeIsFinite() 3041 builder.createIntegerConstant(loc, intType, significandBits); in genIeeeIsFinite() 3044 builder.createIntegerConstant(loc, intType, (1 << exponentBits) - 1); in genIeeeIsFinite() 3046 intType, {intVal, significand, in genIeeeIsFinite() 3047 builder.createIntegerConstant(loc, intType, exponentBits)}); in genIeeeIsFinite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVTypes.cpp | 494 if (auto intType = type.dyn_cast<IntegerType>()) { in classof() local 495 return isValid(intType); in classof() 608 if (auto intType = dyn_cast<IntegerType>()) { in getCapabilities() local
|
| H A D | SPIRVOps.cpp | 1902 if (auto intType = type.dyn_cast<IntegerType>()) { in getZero() local 1903 unsigned width = intType.getWidth(); in getZero() 1935 if (auto intType = type.dyn_cast<IntegerType>()) { in getOne() local 1936 unsigned width = intType.getWidth(); in getOne()
|
| /llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/ |
| H A D | Deserializer.cpp | 1136 if (auto intType = resultType.dyn_cast<IntegerType>()) { in processConstant() local 1137 auto bitwidth = intType.getWidth(); in processConstant() 1156 auto attr = opBuilder.getIntegerAttr(intType, value); in processConstant() 1163 constantMap.try_emplace(resultID, attr, intType); in processConstant()
|
| /llvm-project-15.0.7/mlir/test/lib/Dialect/Test/ |
| H A D | TestDialect.cpp | 155 if (auto intType = type.dyn_cast<TestIntegerType>()) { in getAlias() local 156 if (intType.getSignedness() == in getAlias() 158 intType.getWidth() == 8) { in getAlias()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/ |
| H A D | ArithmeticOps.cpp | 91 auto intType = type.dyn_cast<IntegerType>(); in getAsmResultNames() local 94 if (intType && intType.getWidth() == 1) in getAsmResultNames() 101 if (intType) in getAsmResultNames()
|
| /llvm-project-15.0.7/mlir/lib/AsmParser/ |
| H A D | AttributeParser.cpp | 847 if (auto intType = type.dyn_cast<IntegerType>()) { in parseDenseArrayAttr() local
|