Home
last modified time | relevance | path

Searched refs:bitwidth (Results 1 – 25 of 176) sorted by relevance

12345678

/llvm-project/flang/include/flang/Optimizer/Support/
H A DTypeCode.h26 inline int characterBitsToTypeCode(unsigned bitwidth) { in characterBitsToTypeCode() argument
28 switch (bitwidth) { in characterBitsToTypeCode()
37 inline int complexBitsToTypeCode(unsigned bitwidth) { in complexBitsToTypeCode() argument
39 switch (bitwidth) { in complexBitsToTypeCode()
50 inline int integerBitsToTypeCode(unsigned bitwidth) { in integerBitsToTypeCode() argument
52 switch (bitwidth) { in integerBitsToTypeCode()
63 inline int logicalBitsToTypeCode(unsigned bitwidth) { in logicalBitsToTypeCode() argument
65 switch (bitwidth) { in logicalBitsToTypeCode()
75 inline int realBitsToTypeCode(unsigned bitwidth) { in realBitsToTypeCode() argument
77 switch (bitwidth) { in realBitsToTypeCode()
/llvm-project/mlir/tools/mlir-tblgen/
H A DEnumPythonBindingGen.cpp87 /// Attempts to extract the bitwidth B from string "uintB_t" describing the
88 /// type. This bitwidth information is not readily available in ODS. Returns
90 static bool extractUIntBitwidth(StringRef uintType, int64_t &bitwidth) { in extractUIntBitwidth()
95 return uintType.getAsInteger(/*Radix=*/10, bitwidth); in extractUIntBitwidth()
102 int64_t bitwidth; in emitAttributeBuilder()
103 if (extractUIntBitwidth(enumAttr.getUnderlyingType(), bitwidth)) { in emitAttributeBuilder()
104 llvm::errs() << "failed to identify bitwidth of " in emitAttributeBuilder()
115 bitwidth); in emitAttributeBuilder()
89 extractUIntBitwidth(StringRef uintType,int64_t & bitwidth) extractUIntBitwidth() argument
101 int64_t bitwidth; emitAttributeBuilder() local
/llvm-project/mlir/include/mlir/Conversion/LLVMCommon/
H A DLoweringOptions.h59 void overrideIndexBitwidth(unsigned bitwidth) { in overrideIndexBitwidth() argument
60 assert(bitwidth != kDeriveIndexBitwidthFromDataLayout && in overrideIndexBitwidth()
62 indexBitwidth = bitwidth; in overrideIndexBitwidth()
/llvm-project/mlir/lib/Dialect/Tosa/Utils/
H A DConversionUtils.cpp51 uint64_t bitwidth = ty.getIntOrFloatBitWidth(); in validIntegerRange() local
54 APInt intMin = APInt::getMinValue(bitwidth); in validIntegerRange()
55 APInt intMax = APInt::getMaxValue(bitwidth); in validIntegerRange()
59 APInt intMin = APInt::getSignedMinValue(bitwidth); in validIntegerRange()
60 APInt intMax = APInt::getSignedMaxValue(bitwidth); in validIntegerRange()
/llvm-project/llvm/test/tools/llvm-ifs/
H A Dwrite-stub.test3 # RUN: llvm-ifs --output-elf=%t.elf32l --arch=x86_64 --bitwidth=32 --endianness=little %s
6 # RUN: llvm-ifs --output-elf=%t.elf32b --arch=x86_64 --bitwidth=32 --endianness=big %s
9 # RUN: llvm-ifs --output-elf=%t.elf64l --arch=x86_64 --bitwidth=64 --endianness=little %s
15 # RUN: llvm-ifs --output-elf=%t.elf64b --arch=x86_64 --bitwidth=64 --endianness=big %s
18 # RUN: not llvm-ifs --output-elf=%t --arch=x86_64 --bitwidth=64 --endianness=big --target=x86_64-li…
20 # RUN: not llvm-ifs --output-elf=%t --bitwidth=64 --endianness=big %s 2>&1 | FileCheck %s -DMSG="Ar…
24 # RUN: not llvm-ifs --output-elf=%t --arch=x86_64 --bitwidth=64 %s 2>&1 | FileCheck %s -DMSG="Endia…
29 # RUN: llvm-ifs --output-ifs=%t.target --arch=x86_64 --endianness=little --bitwidth=64 %s
32 # RUN: not llvm-ifs --output-elf=%t --bitwidth=32 %t.target 2>&1 | FileCheck %s -DMSG=BitWidth --ch…
41 # RUN: not llvm-ifs --output-elf=- --arch=riscv64 --endianness=little --bitwidth=64 %s 2>&1 | FileC…
H A Dstrip-target.test4 # RUN: llvm-ifs --input-format=ELF --strip-ifs-arch --strip-ifs-endianness --strip-ifs-bitwidth --o…
7 # RUN: llvm-ifs --input-format=ELF --strip-ifs-bitwidth --output-ifs=- %p/Inputs/sysv_hash.so | Fil…
/llvm-project/mlir/test/Integration/Dialect/Transform/
H A Dmatch_reduction.mlir83 …%bitwidth = transform.match.structured.elemental_bitwidth %init : (!transform.any_value) -> !trans…
86 …transform.match.structured.yield %rank, %dims, %bitwidth, %operand_optional, %init, %trailing_opti…
106 %bitwidth: !transform.param<i64> {transform.readonly}) {
113 …transform.debug.emit_param_as_remark %bitwidth, "bitwidth" at %reduction : !transform.param<i64>, …
150 // expected-remark @below {{bitwidth 32 : i64}}
173 // expected-remark @below {{bitwidth 32 : i64}}
220 // expected-remark @below {{bitwidth 32 : i64}}
269 // expected-remark @below {{bitwidth 32 : i64}}
304 // expected-remark @below {{bitwidth 32 : i64}}
/llvm-project/llvm/test/Transforms/HardwareLoops/
H A Dunconditional-latch.ll1 …ps<force-hardware-loops;hardware-loop-decrement=1;hardware-loop-counter-bitwidth=32>' -S %s -o - |…
2 …ps<force-hardware-loops;hardware-loop-decrement=1;hardware-loop-counter-bitwidth=32>' -force-hardw…
3 …ps<force-hardware-loops;hardware-loop-decrement=1;hardware-loop-counter-bitwidth=32;force-hardware…
H A Dunscevable.ll1 …e-hardware-loops=true -hardware-loop-decrement=1 -hardware-loop-counter-bitwidth=32 -S %s -o - | F…
2 …e-hardware-loops=true -hardware-loop-decrement=1 -hardware-loop-counter-bitwidth=32 -force-hardwar…
3 …e-hardware-loops=true -hardware-loop-decrement=1 -hardware-loop-counter-bitwidth=32 -force-nested-…
/llvm-project/mlir/lib/Conversion/MathToSPIRV/
H A DMathToSPIRV.cpp145 int bitwidth = floatType.getWidth(); in matchAndRewrite() local
146 Type intType = rewriter.getIntegerType(bitwidth); in matchAndRewrite()
147 uint64_t intValue = uint64_t(1) << (bitwidth - 1); in matchAndRewrite()
205 unsigned bitwidth = 0; in matchAndRewrite() local
207 bitwidth = type.getIntOrFloatBitWidth(); in matchAndRewrite()
209 bitwidth = vectorType.getElementTypeBitWidth(); in matchAndRewrite()
210 if (bitwidth != 32) in matchAndRewrite()
/llvm-project/mlir/lib/Dialect/X86Vector/Transforms/
H A DLegalizeForLLVMExport.cpp35 /// intrinsics based on the bitwidth of their "main" vector element type. This
52 unsigned bitwidth = elementType.getIntOrFloatBitWidth(); in matchAndRewrite() local
53 if (bitwidth == 32) in matchAndRewrite()
57 if (bitwidth == 64) in matchAndRewrite()
/llvm-project/llvm/tools/llvm-ifs/
H A DOpts.td12 defm bitwidth : Eq<"bitwidth", "Specify the bit width">;
28 def strip_ifs_bitwidth : FF<"strip-ifs-bitwidth", "Strip target bit width information away from IFS…
/llvm-project/llvm/test/Verifier/
H A Dstepvector-intrinsic.ll14 ; CHECK: stepvector only supported for vectors of integers with a bitwidth of at least 8
22 ; CHECK: stepvector only supported for vectors of integers with a bitwidth of at least 8
H A Dptrmask.ll40 ; CHECK: llvm.ptrmask intrinsic second argument bitwidth must match pointer index type size of firs…
47 ; CHECK: llvm.ptrmask intrinsic second argument bitwidth must match pointer index type size of firs…
/llvm-project/mlir/test/Integration/GPU/CUDA/sm90/transform-dialect/
H A Dtma_load_64x8_8x128_noswizzle-transform.mlir10 // RUN: -convert-index-to-llvm=index-bitwidth=32 \
16 // RUN: | mlir-opt -pass-pipeline='builtin.module(gpu.module(strip-debuginfo,convert-gpu-to-nvvm,convert-index-to-llvm{index-bitwidth=32},canonicalize,cse))' \
37 // RUN: -convert-index-to-llvm=index-bitwidth=32 \
43 // RUN: | mlir-opt -pass-pipeline='builtin.module(gpu.module(strip-debuginfo,convert-gpu-to-nvvm,convert-index-to-llvm{index-bitwidth=32},canonicalize,cse))' \
/llvm-project/mlir/lib/Interfaces/
H A DInferIntRangeInterface.cpp41 ConstantIntRanges ConstantIntRanges::maxRange(unsigned bitwidth) { in maxRange()
42 return fromUnsigned(APInt::getZero(bitwidth), APInt::getMaxValue(bitwidth));
39 maxRange(unsigned bitwidth) maxRange() argument
/llvm-project/mlir/lib/CAPI/IR/
H A DBuiltinTypes.cpp34 MlirType mlirIntegerTypeGet(MlirContext ctx, unsigned bitwidth) { in mlirIntegerTypeGet() argument
35 return wrap(IntegerType::get(unwrap(ctx), bitwidth)); in mlirIntegerTypeGet()
38 MlirType mlirIntegerTypeSignedGet(MlirContext ctx, unsigned bitwidth) { in mlirIntegerTypeSignedGet() argument
39 return wrap(IntegerType::get(unwrap(ctx), bitwidth, IntegerType::Signed)); in mlirIntegerTypeSignedGet()
42 MlirType mlirIntegerTypeUnsignedGet(MlirContext ctx, unsigned bitwidth) { in mlirIntegerTypeUnsignedGet() argument
43 return wrap(IntegerType::get(unwrap(ctx), bitwidth, IntegerType::Unsigned)); in mlirIntegerTypeUnsignedGet()
/llvm-project/mlir/lib/Conversion/SCFToOpenMP/
H A DSCFToOpenMP.cpp167 unsigned bitwidth = intType.getWidth(); in minMaxValueForSignedInt() local
168 return IntegerAttr::get(type, min ? llvm::APInt::getSignedMinValue(bitwidth) in minMaxValueForSignedInt()
169 : llvm::APInt::getSignedMaxValue(bitwidth)); in minMaxValueForSignedInt()
177 unsigned bitwidth = intType.getWidth(); in minMaxValueForUnsignedInt() local
178 return IntegerAttr::get(type, min ? llvm::APInt::getZero(bitwidth) in minMaxValueForUnsignedInt()
179 : llvm::APInt::getAllOnes(bitwidth)); in minMaxValueForUnsignedInt()
/llvm-project/mlir/include/mlir-c/
H A DBuiltinTypes.h31 /// Creates a signless integer type of the given bitwidth in the context. The
34 unsigned bitwidth);
36 /// Creates a signed integer type of the given bitwidth in the context. The type
39 unsigned bitwidth);
41 /// Creates an unsigned integer type of the given bitwidth in the context. The
44 unsigned bitwidth);
46 /// Returns the bitwidth of an integer type.
79 /// Returns the bitwidth of a floating-point type.
/llvm-project/llvm/test/Transforms/WholeProgramDevirt/
H A Dvcp-type-mismatch.ll5 ; to optimize. For bitwidth mismatches, we allow the optimization in order
6 ; to simplify the implementation. This is legal because the bitwidth mismatch
/llvm-project/mlir/include/mlir/Dialect/Ptr/IR/
H A DPtrAttrDefs.td35 - [Optional] index: bitwidth that should be used when performing index
45 // a preferred alignment of 128 bits and an index bitwidth of 64 bits.
/llvm-project/mlir/docs/
H A DDataLayout.md133 example, `IntegerType{signedness=signless, bitwidth=8}` (or `i8` in the IR) or
134 `IntegerType{signedness=unsigned, bitwidth=32}` (or `ui32` in the IR). When
143 bitwidth.
236 `ceildiv(bitwidth, 8)`. The ABI alignment of integer types with bitwidth below
238 bytes. The ABI alignment of integer types with bitwidth 64 and above is 4 bytes
263 data layout entry that specifies its bitwidth. For example,
273 those of the integer type with the same bitwidth defined above.
/llvm-project/mlir/lib/Dialect/Tosa/IR/
H A DTosaCanonicalizations.cpp648 auto bitwidth = ty.getElementType().getIntOrFloatBitWidth(); in fold()
649 l = l.sext(bitwidth * 2); in fold()
650 r = r.sext(bitwidth * 2); in fold()
653 result = result.trunc(bitwidth);
870 auto bitwidth = outETy.getIntOrFloatBitWidth(); in fold()
873 intVal = intVal.trunc(bitwidth);
875 intVal = intVal.zext(bitwidth); in fold()
877 intVal = intVal.sext(bitwidth); in fold()
577 auto bitwidth = ty.getElementType().getIntOrFloatBitWidth(); mulBinaryFolder() local
776 auto bitwidth = outETy.getIntOrFloatBitWidth(); fold() local
/llvm-project/llvm/test/CodeGen/PowerPC/
H A Dfastisel-gep-promote-before-add.ll1 ; fastisel should not fold add with non-pointer bitwidth
/llvm-project/llvm/test/CodeGen/ARM/
H A Dfastisel-gep-promote-before-add.ll1 ; fastisel should not fold add with non-pointer bitwidth

12345678