| /llvm-project-15.0.7/polly/lib/External/isl/imath/tests/gmp-compat-test/ |
| H A D | genctest.py | 22 if ty == mpz_t: 24 elif ty == ilong: 26 elif ty == ulong: 28 elif ty == iint: 30 elif ty == charp: 32 elif ty == mpq_t: 39 if ty == mpz_t or ty == mpq_t: 46 if ty == mpz_t: 65 if ty == mpz_t: 74 if ty == mpz_t or ty == mpq_t: [all …]
|
| /llvm-project-15.0.7/llvm/utils/ |
| H A D | shuffle_select_fuzz_tester.py | 115 self.ty = ty # Type 207 if ty.is_float: 210 inp.append((i*ty.elt_num + j) % (1 << ty.elt_width)) 220 if ty != None: 221 if ty == 'i8': 224 elif ty == 'i16': 227 elif ty == 'i32': 246 if ty == None: 285 int_zero_init = Value('zeroinitializer', ty, [0]*ty.elt_num) 286 float_zero_init = Value('zeroinitializer', ty, [0.0]*ty.elt_num) [all …]
|
| /llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/ |
| H A D | BoxedProcedure.cpp | 47 if (ty.isa<BoxProcType>()) in needsConversion() 81 if (isa_ref_type(ty)) in needsConversion() 89 addConversion([](mlir::Type ty) { return ty; }); in __anonfdb31fde0302() argument 114 [&](HeapType ty) { return HeapType::get(convertType(ty.getEleTy())); }); in __anonfdb31fde0902() argument 116 [&](BoxType ty) { return BoxType::get(convertType(ty.getEleTy())); }); in __anonfdb31fde0a02() argument 119 return SequenceType::get(ty.getShape(), convertType(ty.getEleTy())); in __anonfdb31fde0b02() 122 if (!needsConversion(ty)) in __anonfdb31fde0c02() 123 return ty; in __anonfdb31fde0c02() 250 auto ty = mem.getType(); in runOnOperation() local 264 auto ty = mem.getType(); in runOnOperation() local [all …]
|
| H A D | TargetRewrite.cpp | 150 auto *ctx = ty.getContext(); in rewriteCallComplexInputType() 182 newInTys.push_back(ty); in rewriteCallComplexInputType() 222 .Default([&](mlir::Type ty) { newResTys.push_back(ty); }); in convertCallOp() argument 312 newInTys.push_back(ty); in convertCallOp() 385 .Default([&](mlir::Type ty) { newResTys.push_back(ty); }); in convertAddrOp() argument 417 .Default([&](mlir::Type ty) { newInTys.push_back(ty); }); in convertAddrOp() argument 450 for (auto ty : func.getInputs()) in hasPortableSignature() local 451 if (((ty.isa<fir::BoxCharType>() || fir::isCharacterProcedureTuple(ty)) && in hasPortableSignature() 495 .Default([&](mlir::Type ty) { newResTys.push_back(ty); }); in convertSignature() argument 500 auto ty = e.value(); in convertSignature() local [all …]
|
| H A D | CodeGen.cpp | 92 return lowerTy().convertType(ty); in convertType() 174 mlir::Type ty, in loadFromOffset() argument 366 mlir::Type resultTy = ty; in matchAndRewrite() 403 if (ty == resultTy) { in matchAndRewrite() 768 return ty.isa<mlir::FloatType>(); in isFloatingPointTy() 1944 return ty; in getInputEleTy() 1967 assert(ty && "type is null"); in toRowMajor() 2006 auto eleTy = ty.getElementType(); in getArrayElementType() 2105 loc, ty, lastOp, insertVal, in doRewrite() 2119 range, ty, lastOp, insertVal, in doRewrite() [all …]
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | AttributeDetail.h | 46 DenseElementsAttributeStorage(ShapedType ty, bool isSplat) in DenseElementsAttributeStorage() 47 : AttributeStorage(ty), isSplat(isSplat) {} in DenseElementsAttributeStorage() 103 return KeyTy(ty, data, 0); in getKey() 113 size_t numElements = ty.getNumElements(); in getKey() 117 if (ty.getElementType().isInteger(1) == 1) in getKey() 118 return getKeyForBoolData(ty, data, numElements); in getKey() 148 return KeyTy(ty, data.take_front(1), in getKeyForBoolData() 160 return KeyTy(ty, data, llvm::hash_value(data)); in getKeyForBoolData() 172 : KeyTy(ty, data, llvm::hash_value(data)); in getKeyForBoolData() 247 return KeyTy(ty, data, 0); in getKey() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | CBindingWrapping.h | 19 #define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \ argument 20 inline ty *unwrap(ref P) { \ 21 return reinterpret_cast<ty*>(P); \ 24 inline ref wrap(const ty *P) { \ 25 return reinterpret_cast<ref>(const_cast<ty*>(P)); \ 28 #define DEFINE_ISA_CONVERSION_FUNCTIONS(ty, ref) \ argument 29 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \ 36 #define DEFINE_STDCXX_CONVERSION_FUNCTIONS(ty, ref) \ argument 37 DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyInstrAtomics.td | 563 def : Pat<(ty (kind I32:$addr, ty:$val)), 566 def : Pat<(ty (kind I64:$addr, ty:$val)), 586 def : Pat<(ty (kind imm:$off, ty:$val)), 589 def : Pat<(ty (kind imm:$off, ty:$val)), 797 def : Pat<(ty (kind I32:$addr, ty:$exp, ty:$new)), 800 def : Pat<(ty (kind I64:$addr, ty:$exp, ty:$new)), 810 def : Pat<(ty (kind (operand I32:$addr, imm:$off), ty:$exp, ty:$new)), 813 def : Pat<(ty (kind (operand I64:$addr, imm:$off), ty:$exp, ty:$new)), 820 def : Pat<(ty (kind imm:$off, ty:$exp, ty:$new)), 823 def : Pat<(ty (kind imm:$off, ty:$exp, ty:$new)), [all …]
|
| H A D | WebAssemblyInstrMemory.td | 87 def : Pat<(ty (kind (operand I32:$addr, imm:$off))), 90 def : Pat<(ty (kind (operand I64:$addr, imm:$off))), 106 def : Pat<(ty (kind imm:$off)), 109 def : Pat<(ty (kind imm:$off)), 268 def : Pat<(node ty:$val, I32:$addr), 271 def : Pat<(node ty:$val, I64:$addr), 284 def : Pat<(kind ty:$val, (operand I32:$addr, imm:$off)), 303 def : Pat<(kind ty:$val, imm:$off), 306 def : Pat<(kind ty:$val, imm:$off), 318 ty:$val)>, [all …]
|
| /llvm-project-15.0.7/llvm/test/Assembler/ |
| H A D | struct-ret-without-upgrade.ll | 7 %ty = type { i32 } 9 define %ty @test(%ty %arg) { 14 %copy = call %ty @llvm.ssa.copy.s_tys(%ty %arg) 15 ret %ty %copy 18 declare %ty @llvm.ssa.copy.s_tys(%ty)
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Dialect/ |
| H A D | FIRType.cpp | 53 mlir::Type ty; in parseTypeSingleton() local 62 return ty.isa<mlir::IntegerType>() || ty.isa<fir::IntegerType>(); in isaIntegerType() 66 return !(ty.isa<BoxCharType>() || ty.isa<BoxProcType>() || in verifyRecordMemberType() 67 ty.isa<ShapeType>() || ty.isa<ShapeShiftType>() || in verifyRecordMemberType() 68 ty.isa<ShiftType>() || ty.isa<SliceType>() || ty.isa<FieldType>() || in verifyRecordMemberType() 69 ty.isa<LenType>() || ty.isa<ReferenceType>() || in verifyRecordMemberType() 251 ty = refTy; in isPointerType() 259 ty = refTy; in isAllocatableType() 267 ty = refTy; in isUnlimitedPolymorphicType() 293 ty = nt; in unwrapAllRefAndSeqType() [all …]
|
| /llvm-project-15.0.7/flang/include/flang/Optimizer/Dialect/ |
| H A D | FIRType.h | 210 mlir::Type unwrapSeqOrBoxedSeqType(mlir::Type ty); 215 mlir::Type unwrapAllRefAndSeqType(mlir::Type ty); 223 if (auto ty = dyn_cast_ptrOrBoxEleTy(t)) { in unwrapUntilSeqType() local 224 t = ty; in unwrapUntilSeqType() 236 inline bool singleIndirectionLevel(mlir::Type ty) { in singleIndirectionLevel() argument 237 return !fir::isa_ref_type(ty); in singleIndirectionLevel() 243 bool isPointerType(mlir::Type ty); 246 bool isAllocatableType(mlir::Type ty); 250 bool isUnlimitedPolymorphicType(mlir::Type ty); 253 bool isRecordWithAllocatableMember(mlir::Type ty); [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/NVPTX/ |
| H A D | surf-tex.py | 53 return reg[ty] 66 if ty == "f16": 76 if ty == "i8": 77 ty = "i16" 84 return vec_ty[vec].format(ty=ty) 90 if ty == "i8": 91 ty = "i16" 98 return value[vec].format(ty=ty) 104 if ty == "i8": 105 ty = "i16" [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-objdump/COFF/ |
| H A D | import-library.test | 3 CHECK: [ 0](sec 0)(fl 0x00)(ty 0)(scl 0) (nx 0) 0x00000000 __imp__constant 5 CHECK: [ 0](sec 0)(fl 0x00)(ty 0)(scl 0) (nx 0) 0x00000000 __imp__data 7 CHECK: [ 0](sec 0)(fl 0x00)(ty 0)(scl 0) (nx 0) 0x00000000 __imp__function 8 CHECK: [ 1](sec 0)(fl 0x00)(ty 20)(scl 0) (nx 0) 0x00000000 _function 10 CHECK: [ 0](sec 0)(fl 0x00)(ty 0)(scl 0) (nx 0) 0x00000000 __imp__ordinal 11 CHECK: [ 1](sec 0)(fl 0x00)(ty 20)(scl 0) (nx 0) 0x00000000 _ordinal
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVInstrInfo.td | 92 def OpSizeOf: Op<321, (outs ID:$res), (ins TYPE:$ty, ID:$ptr), "$res = OpSizeOf $ty $ptr">; 104 "OpMemberName $ty $mem $name">; 135 "$res = OpExtInst $ty $set $inst">; 508 def OpBitReverse: Op<204, (outs ID:$r), (ins TYPE:$ty, ID:$b), "$r = OpBitReverse $ty $b">; 509 def OpBitCount: Op<205, (outs ID:$r), (ins TYPE:$ty, ID:$b), "$r = OpBitCount $ty $b">; 514 "$res = OpAny $ty $vec">; 516 "$res = OpAll $ty $vec">; 605 "$res = "#name#" $ty $ptr $sc $sem">; 672 "$res = OpGroupAll $ty $scope $pr">; 674 "$res = OpGroupAny $ty $scope $pr">; [all …]
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | attr-arm-sve-vector-bits-types.c | 35 #define DEFINE_STRUCT(ty) \ argument 36 struct struct_##ty { \ 37 fixed_##ty##_t x; \ 38 } struct_##ty; 40 #define DEFINE_UNION(ty) \ argument 41 union union_##ty { \ 42 fixed_##ty##_t x; \ 43 } union_##ty;
|
| /llvm-project-15.0.7/clang/utils/ |
| H A D | ClangDataFormat.py | 99 ty = value.GetType() 100 if ty.IsPointerType() or ty.IsReferenceType(): 101 return ty.GetPointeeType().GetName() 102 return ty.GetName() 109 ty = value.GetType() 110 if not (ty.IsPointerType() or 111 ty.IsReferenceType() or
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Builder/Runtime/ |
| H A D | Reduction.cpp | 25 auto ty = mlir::FloatType::getF80(ctx); in getTypeModel() local 31 {ty}); in getTypeModel() 47 {ty}); in getTypeModel() 64 {ty}); in getTypeModel() 80 {ty}); in getTypeModel() 96 {ty}); in getTypeModel() 543 auto ty = arrayBox.getType(); in genMaxval() local 659 auto ty = arrayBox.getType(); in genMinval() local 713 auto ty = arrayBox.getType(); in genProduct() local 781 auto ty = vectorABox.getType(); in genDotProduct() local [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/ARM/ |
| H A D | umulo-32.ll | 4 %umul.ty = type { i32, i1 } 22 %tmp0 = tail call %umul.ty @llvm.umul.with.overflow.i32(i32 %a, i32 37) 23 %tmp1 = extractvalue %umul.ty %tmp0, 0 28 declare %umul.ty @llvm.umul.with.overflow.i32(i32, i32) nounwind readnone 50 %res = call %umul.ty @llvm.umul.with.overflow.i32(i32 %val, i32 8) 51 %ov = extractvalue %umul.ty %res, 1 52 %mul = extractvalue %umul.ty %res, 0
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelLoweringHVX.cpp | 577 MVT OpTy = ty(Op0); in getByteShuffle() 1409 MVT VecTy = ty(Op); in LowerHvxBuildVector() 1450 MVT VecTy = ty(Op); in LowerHvxSplatVector() 1470 MVT VecTy = ty(Op); in LowerHvxConcatVectors() 1487 MVT Ty = ty(V); in LowerHvxConcatVectors() 1579 MVT VecTy = ty(Op); in LowerHvxInsertElement() 1603 MVT DstTy = ty(Op); in LowerHvxExtractSubvector() 1640 MVT ResTy = ty(Op); in LowerHvxAnyExt() 1650 MVT ResTy = ty(Op); in LowerHvxSignExt() 1660 MVT ResTy = ty(Op); in LowerHvxZeroExt() [all …]
|
| /llvm-project-15.0.7/lld/test/ELF/linkerscript/ |
| H A D | filename-spec.s | 5 # RUN: llvm-mc -filetype=obj -triple=x86_64 ty.s -o ty.o 8 # RUN: ld.lld -o 1 -T 1.t tx.o ty.o 14 # RUN: ld.lld -o 2 -T 2.t tx.o ty.o 22 # RUN: ld.lld -o 3 -T 3.t tx.o ty.o 26 # RUN: ld.lld -o 4 -T 4.t tx.o ty.o 30 # RUN: cp ty.o dir0/filename-spec2.o 41 # RUN: cp ty.o dir2/filename-spec2.o 83 #--- ty.s
|
| /llvm-project-15.0.7/mlir/test/python/dialects/ |
| H A D | pdl_ops.py | 33 ty = TypeOp() 34 op0 = OperationOp(attributes={"attr": attr}, types=[ty]) 76 ty = TypeOp() 77 op1 = OperationOp(args=[input1], types=[ty]) 80 op2 = OperationOp(args=[input2], types=[ty]) 105 ty = TypeOp() 106 op1 = OperationOp(args=[input1], types=[ty]) 109 op2 = OperationOp(args=[input2], types=[ty])
|
| /llvm-project-15.0.7/lld/COFF/ |
| H A D | DebugTypes.cpp | 332 for (const CVType &ty : types) { in mergeDebugT() local 581 fn(ty); in forEachTypeChecked() 594 if (isIdRecord(ty.kind())) in fillIsItemIndexFromDebugT() 602 bool isItem = isIdRecord(ty.kind()); in mergeTypeRecord() 608 size_t newSize = alignTo(ty.length(), 4); in mergeTypeRecord() 614 if (newSize != ty.length()) { in mergeTypeRecord() 629 if (ty.kind() == LF_FUNC_ID || ty.kind() == LF_MFUNC_ID) { in mergeTypeRecord() 630 bool success = ty.length() >= 12; in mergeTypeRecord() 667 size_t newSize = alignTo(ty.length(), 4); in mergeUniqueTypeRecords() 811 if (ty.kind() == LF_ENDPRECOMP) in loadGHashes() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | DataLayoutInterfaces.cpp | 413 return cachedLookup(t, sizes, [&](Type ty) { in getTypeSize() argument 416 list = originalLayout.getSpecForType(ty.getTypeID()); in getTypeSize() 418 return iface.getTypeSize(ty, *this, list); in getTypeSize() 419 return detail::getDefaultTypeSize(ty, *this, list); in getTypeSize() 425 return cachedLookup(t, bitsizes, [&](Type ty) { in getTypeSizeInBits() argument 428 list = originalLayout.getSpecForType(ty.getTypeID()); in getTypeSizeInBits() 430 return iface.getTypeSizeInBits(ty, *this, list); in getTypeSizeInBits() 437 return cachedLookup(t, abiAlignments, [&](Type ty) { in getTypeABIAlignment() argument 440 list = originalLayout.getSpecForType(ty.getTypeID()); in getTypeABIAlignment() 442 return iface.getTypeABIAlignment(ty, *this, list); in getTypeABIAlignment() [all …]
|
| /llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/ |
| H A D | Factory.h | 58 auto toArrayTy = [&](fir::CharacterType ty) { in genCharacterCopy() 61 fir::CharacterType::getSingleton(ty.getContext(), ty.getFKind()))); in genCharacterCopy() 63 auto toEleTy = [&](fir::ReferenceType ty) { in genCharacterCopy() 64 auto seqTy = ty.getEleTy().cast<fir::SequenceType>(); in genCharacterCopy() 67 auto toCoorTy = [&](fir::ReferenceType ty) { in genCharacterCopy() 68 return fir::ReferenceType::get(toEleTy(ty)); in genCharacterCopy() 192 auto ty = fir::dyn_cast_ptrOrBoxEleTy(memTy); in originateIndices() local 193 assert(ty && ty.isa<fir::SequenceType>()); in originateIndices() 194 auto seqTy = ty.cast<fir::SequenceType>(); in originateIndices()
|