Home
last modified time | relevance | path

Searched refs:LLVMType (Results 1 – 25 of 90) sorted by relevance

1234

/external/llvm-project/llvm/include/llvm/IR/
DIntrinsicsVEVL.gen.td1 …Builtin<"__builtin_ve_vl_vld_vssl">, Intrinsic<[LLVMType<v256f64>], [LLVMType<i64>, llvm_ptr_ty, L…
2 …builtin_ve_vl_vld_vssvl">, Intrinsic<[LLVMType<v256f64>], [LLVMType<i64>, llvm_ptr_ty, LLVMType<v2…
3 …iltin<"__builtin_ve_vl_vldnc_vssl">, Intrinsic<[LLVMType<v256f64>], [LLVMType<i64>, llvm_ptr_ty, L…
4 …iltin_ve_vl_vldnc_vssvl">, Intrinsic<[LLVMType<v256f64>], [LLVMType<i64>, llvm_ptr_ty, LLVMType<v2…
5 …uiltin<"__builtin_ve_vl_vldu_vssl">, Intrinsic<[LLVMType<v256f64>], [LLVMType<i64>, llvm_ptr_ty, L…
6 …uiltin_ve_vl_vldu_vssvl">, Intrinsic<[LLVMType<v256f64>], [LLVMType<i64>, llvm_ptr_ty, LLVMType<v2…
7 …ltin<"__builtin_ve_vl_vldunc_vssl">, Intrinsic<[LLVMType<v256f64>], [LLVMType<i64>, llvm_ptr_ty, L…
8 …ltin_ve_vl_vldunc_vssvl">, Intrinsic<[LLVMType<v256f64>], [LLVMType<i64>, llvm_ptr_ty, LLVMType<v2…
9 …ltin<"__builtin_ve_vl_vldlsx_vssl">, Intrinsic<[LLVMType<v256f64>], [LLVMType<i64>, llvm_ptr_ty, L…
10 …ltin_ve_vl_vldlsx_vssvl">, Intrinsic<[LLVMType<v256f64>], [LLVMType<i64>, llvm_ptr_ty, LLVMType<v2…
[all …]
DIntrinsics.td162 class LLVMType<ValueType vt> {
167 class LLVMQualPointerType<LLVMType elty, int addrspace>
168 : LLVMType<iPTR>{
169 LLVMType ElTy = elty;
173 class LLVMPointerType<LLVMType elty>
176 class LLVMAnyPointerType<LLVMType elty>
177 : LLVMType<iPTRAny>{
178 LLVMType ElTy = elty;
190 : LLVMType<OtherVT>{
204 class LLVMScalarOrSameVectorWidth<int idx, LLVMType elty>
[all …]
DIntrinsicsSystemZ.td13 class SystemZUnaryConv<string name, LLVMType result, LLVMType arg>
17 class SystemZUnary<string name, LLVMType type>
20 class SystemZUnaryConvCC<LLVMType result, LLVMType arg>
23 class SystemZUnaryCC<LLVMType type>
26 class SystemZBinaryConv<string name, LLVMType result, LLVMType arg>
30 class SystemZBinary<string name, LLVMType type>
33 class SystemZBinaryInt<string name, LLVMType type>
37 class SystemZBinaryConvCC<LLVMType result, LLVMType arg>
40 class SystemZBinaryConvIntCC<LLVMType result, LLVMType arg>
44 class SystemZBinaryCC<LLVMType type>
[all …]
/external/llvm-project/mlir/include/mlir/Dialect/LLVMIR/
DLLVMTypes.h67 class LLVMType : public Type {
74 static LLVMType getFromOpaquePointer(const void *ptr) { in getFromOpaquePointer()
75 return LLVMType(static_cast<ImplType *>(const_cast<void *>(ptr))); in getFromOpaquePointer()
103 LLVMType getArrayElementType();
113 LLVMType getVectorElementType();
119 LLVMType getFunctionParamType(unsigned argIdx);
121 LLVMType getFunctionResultType();
126 LLVMType getPointerTo(unsigned addrSpace = 0);
127 LLVMType getPointerElementTy();
131 LLVMType getStructElementType(unsigned i);
[all …]
/external/llvm-project/mlir/lib/Dialect/LLVMIR/IR/
DLLVMTypes.cpp31 bool LLVMType::classof(Type type) { in classof()
35 LLVMDialect &LLVMType::getDialect() { in getDialect()
42 llvm::TypeSize LLVMType::getPrimitiveSizeInBits() { in getPrimitiveSizeInBits()
43 return llvm::TypeSwitch<LLVMType, llvm::TypeSize>(*this) in getPrimitiveSizeInBits()
45 [](LLVMType) { return llvm::TypeSize::Fixed(16); }) in getPrimitiveSizeInBits() argument
46 .Case<LLVMFloatType>([](LLVMType) { return llvm::TypeSize::Fixed(32); }) in getPrimitiveSizeInBits() argument
48 [](LLVMType) { return llvm::TypeSize::Fixed(64); }) in getPrimitiveSizeInBits() argument
52 .Case<LLVMX86FP80Type>([](LLVMType) { return llvm::TypeSize::Fixed(80); }) in getPrimitiveSizeInBits() argument
54 [](LLVMType) { return llvm::TypeSize::Fixed(128); }) in getPrimitiveSizeInBits() argument
65 .Default([](LLVMType ty) { in getPrimitiveSizeInBits()
[all …]
DTypeDetail.h75 Key(ArrayRef<LLVMType> types, bool packed) in Key()
99 ArrayRef<LLVMType> getTypeList() const { in getTypeList()
141 ArrayRef<LLVMType> types;
156 ArrayRef<LLVMType> getTypeList() const { in getTypeList()
159 return ArrayRef<LLVMType>(static_cast<const LLVMType *>(keyPtr), keySize()); in getTypeList()
163 ArrayRef<LLVMType> getIdentifiedStructBody() const { in getIdentifiedStructBody()
167 return ArrayRef<LLVMType>(identifiedBodyArray, identifiedBodySize()); in getIdentifiedStructBody()
202 ArrayRef<LLVMType> types = key.getTypeList(); in LLVMStructTypeStorage()
235 LogicalResult mutate(TypeStorageAllocator &allocator, ArrayRef<LLVMType> body, in mutate()
247 ArrayRef<LLVMType> typesInAllocator = allocator.copyInto(body); in mutate()
[all …]
DLLVMTypeSyntax.cpp22 static void printTypeImpl(llvm::raw_ostream &os, LLVMType type,
26 static StringRef getTypeKeyword(LLVMType type) { in getTypeKeyword()
67 llvm::interleaveComma(type.getBody(), os, [&](LLVMType subtype) { in printStructTypeBody()
114 [&os, &stack](LLVMType subtype) { printTypeImpl(os, subtype, stack); }); in printFunctionType()
132 static void printTypeImpl(llvm::raw_ostream &os, LLVMType type, in printTypeImpl()
174 void mlir::LLVM::detail::printType(LLVMType type, DialectAsmPrinter &printer) { in printType()
183 static LLVMType parseTypeImpl(DialectAsmParser &parser,
189 LLVMType &result) { in parseTypeImpl()
199 LLVMType returnType; in parseFunctionType()
213 SmallVector<LLVMType, 8> argTypes; in parseFunctionType()
[all …]
DNVVMDialect.cpp56 auto type = resultType.cast<LLVM::LLVMType>(); in parseNVVMShflSyncBflyOp()
65 auto int32Ty = LLVM::LLVMType::getInt32Ty(parser.getBuilder().getContext()); in parseNVVMShflSyncBflyOp()
74 auto int32Ty = LLVM::LLVMType::getInt32Ty(context); in parseNVVMVoteBallotOp()
75 auto int1Ty = LLVM::LLVMType::getInt1Ty(context); in parseNVVMVoteBallotOp()
89 auto f16Ty = LLVM::LLVMType::getHalfTy(context); in verify()
90 auto f16x2Ty = LLVM::LLVMType::getVectorTy(f16Ty, 2); in verify()
91 auto f32Ty = LLVM::LLVMType::getFloatTy(context); in verify()
92 auto f16x2x4StructTy = LLVM::LLVMType::getStructTy( in verify()
94 auto f32x8StructTy = LLVM::LLVMType::getStructTy( in verify()
DROCDLDialect.cpp49 auto int32Ty = LLVM::LLVMType::getInt32Ty(context); in parseROCDLMubufLoadOp()
50 auto int1Ty = LLVM::LLVMType::getInt1Ty(context); in parseROCDLMubufLoadOp()
51 auto i32x4Ty = LLVM::LLVMType::getVectorTy(int32Ty, 4); in parseROCDLMubufLoadOp()
68 auto int32Ty = LLVM::LLVMType::getInt32Ty(context); in parseROCDLMubufStoreOp()
69 auto int1Ty = LLVM::LLVMType::getInt1Ty(context); in parseROCDLMubufStoreOp()
70 auto i32x4Ty = LLVM::LLVMType::getVectorTy(int32Ty, 4); in parseROCDLMubufStoreOp()
DLLVMDialect.cpp104 auto resultType = LLVMType::getInt1Ty(builder.getContext()); in parseCmpOp()
105 auto argType = type.dyn_cast<LLVM::LLVMType>(); in parseCmpOp()
110 LLVMType::getVectorTy(resultType, argType.getVectorNumElements()); in parseCmpOp()
121 auto elemTy = op.getType().cast<LLVM::LLVMType>().getPointerElementTy(); in printAllocaOp()
222 auto llvmTy = type.dyn_cast<LLVM::LLVMType>(); in getLoadStoreElementType()
406 LLVM::LLVMType llvmResultType; in parseInvokeOp()
408 llvmResultType = LLVM::LLVMType::getVoidTy(builder.getContext()); in parseInvokeOp()
410 llvmResultType = funcType.getResult(0).dyn_cast<LLVM::LLVMType>(); in parseInvokeOp()
416 SmallVector<LLVM::LLVMType, 8> argTypes; in parseInvokeOp()
419 if (auto argType = ty.dyn_cast<LLVM::LLVMType>()) in parseInvokeOp()
[all …]
/external/llvm-project/mlir/lib/Conversion/GPUToVulkan/
DConvertLaunchFuncToVulkanCalls.cpp60 llvmFloatType = LLVM::LLVMType::getFloatTy(&getContext()); in initializeCachedTypes()
61 llvmVoidType = LLVM::LLVMType::getVoidTy(&getContext()); in initializeCachedTypes()
62 llvmPointerType = LLVM::LLVMType::getInt8PtrTy(&getContext()); in initializeCachedTypes()
63 llvmInt32Type = LLVM::LLVMType::getInt32Ty(&getContext()); in initializeCachedTypes()
64 llvmInt64Type = LLVM::LLVMType::getInt64Ty(&getContext()); in initializeCachedTypes()
67 LLVM::LLVMType getMemRefType(uint32_t rank, LLVM::LLVMType elemenType) { in getMemRefType()
80 LLVM::LLVMType::getArrayTy(getInt64Type(), rank); in getMemRefType()
85 return LLVM::LLVMType::getStructTy( in getMemRefType()
91 LLVM::LLVMType getVoidType() { return llvmVoidType; } in getVoidType()
92 LLVM::LLVMType getPointerType() { return llvmPointerType; } in getPointerType()
[all …]
/external/llvm-project/mlir/lib/Conversion/GPUCommon/
DOpToFuncCallLowering.h44 using LLVM::LLVMType; in matchAndRewrite()
58 LLVMType resultType = in matchAndRewrite()
59 castedOperands.front().getType().cast<LLVM::LLVMType>(); in matchAndRewrite()
60 LLVMType funcType = getFunctionType(resultType, castedOperands); in matchAndRewrite()
83 LLVM::LLVMType type = operand.getType().cast<LLVM::LLVMType>(); in maybeCast()
88 operand.getLoc(), LLVM::LLVMType::getFloatTy(rewriter.getContext()), in maybeCast()
92 LLVM::LLVMType getFunctionType(LLVM::LLVMType resultType, in getFunctionType()
94 using LLVM::LLVMType; in getFunctionType()
95 SmallVector<LLVMType, 1> operandTypes; in getFunctionType()
97 operandTypes.push_back(operand.getType().cast<LLVMType>()); in getFunctionType()
[all …]
DConvertLaunchFuncToRuntimeCalls.cpp55 FunctionCallBuilder(StringRef functionName, LLVM::LLVMType returnType, in FunctionCallBuilder()
56 ArrayRef<LLVM::LLVMType> argumentTypes) in FunctionCallBuilder()
58 functionType(LLVM::LLVMType::getFunctionTy(returnType, argumentTypes, in FunctionCallBuilder()
65 LLVM::LLVMType functionType;
77 LLVM::LLVMType llvmVoidType = LLVM::LLVMType::getVoidTy(context);
78 LLVM::LLVMType llvmPointerType = LLVM::LLVMType::getInt8PtrTy(context);
79 LLVM::LLVMType llvmPointerPointerType = llvmPointerType.getPointerTo();
80 LLVM::LLVMType llvmInt8Type = LLVM::LLVMType::getInt8Ty(context);
81 LLVM::LLVMType llvmInt32Type = LLVM::LLVMType::getInt32Ty(context);
82 LLVM::LLVMType llvmInt64Type = LLVM::LLVMType::getInt64Ty(context);
[all …]
/external/llvm/include/llvm/IR/
DIntrinsics.td96 class LLVMType<ValueType vt> {
100 class LLVMQualPointerType<LLVMType elty, int addrspace>
101 : LLVMType<iPTR>{
102 LLVMType ElTy = elty;
106 class LLVMPointerType<LLVMType elty>
109 class LLVMAnyPointerType<LLVMType elty>
110 : LLVMType<iPTRAny>{
111 LLVMType ElTy = elty;
121 : LLVMType<OtherVT>{
131 class LLVMVectorSameWidth<int num, LLVMType elty>
[all …]
DIntrinsicsSystemZ.td14 class SystemZUnaryConv<string name, LLVMType result, LLVMType arg>
18 class SystemZUnary<string name, LLVMType type>
21 class SystemZUnaryConvCC<LLVMType result, LLVMType arg>
24 class SystemZUnaryCC<LLVMType type>
27 class SystemZBinaryConv<string name, LLVMType result, LLVMType arg>
31 class SystemZBinary<string name, LLVMType type>
34 class SystemZBinaryInt<string name, LLVMType type>
38 class SystemZBinaryConvCC<LLVMType result, LLVMType arg>
41 class SystemZBinaryConvIntCC<LLVMType result, LLVMType arg>
44 class SystemZBinaryCC<LLVMType type>
[all …]
/external/llvm-project/mlir/lib/Target/LLVMIR/
DTypeTranslation.cpp30 llvm::Type *translateType(LLVM::LLVMType type) { in translateType()
37 llvm::TypeSwitch<LLVM::LLVMType, llvm::Type *>(type) in translateType()
79 .Default([](LLVM::LLVMType t) -> llvm::Type * { in translateType()
150 void translateTypes(ArrayRef<LLVM::LLVMType> types, in translateTypes()
164 llvm::DenseMap<LLVM::LLVMType, llvm::Type *> knownTranslations;
175 llvm::Type *LLVM::TypeToLLVMIRTranslator::translateType(LLVM::LLVMType type) { in translateType()
180 LLVM::LLVMType type, const llvm::DataLayout &layout) { in getPreferredAlignment()
194 LLVM::LLVMType translateType(llvm::Type *type) { in translateType()
198 LLVM::LLVMType translated = in translateType()
199 llvm::TypeSwitch<llvm::Type *, LLVM::LLVMType>(type) in translateType()
[all …]
/external/llvm-project/llvm/test/TableGen/
Dintrinsic-pointer-to-any.td24 class LLVMType<ValueType vt> {
30 class Intrinsic<list<LLVMType> ret_types> {
33 list<LLVMType> RetTypes = ret_types;
34 list<LLVMType> ParamTypes = [];
41 class LLVMQualPointerType<LLVMType elty>
42 : LLVMType<iPTR>{
43 LLVMType ElTy = elty;
47 class LLVMPointerType<LLVMType elty>
51 def llvm_any_ty : LLVMType<Any>;
54 def llvm_i8_ty : LLVMType<i8>;
Dintrin-side-effects.td7 class LLVMType<ValueType vt> {
12 def llvm_i32_ty : LLVMType<i32>;
21 class Intrinsic<list<LLVMType> ret_types,
22 list<LLVMType> param_types = [],
29 list<LLVMType> RetTypes = ret_types;
30 list<LLVMType> ParamTypes = param_types;
Dintrinsic-varargs.td11 class LLVMType<ValueType vt> {
15 class Intrinsic<string name, list<LLVMType> param_types = []> {
19 list<LLVMType> RetTypes = [];
20 list<LLVMType> ParamTypes = param_types;
26 def llvm_vararg_ty : LLVMType<isVoid>; // this means vararg here
Dintrinsic-struct.td16 class LLVMType<ValueType vt> {
20 class Intrinsic<string name, list<LLVMType> ret_types = []> {
24 list<LLVMType> RetTypes = ret_types;
25 list<LLVMType> ParamTypes = [];
32 def llvm_anyint_ty : LLVMType<iAny>;
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DIntrinsics.td134 class LLVMType<ValueType vt> {
139 class LLVMQualPointerType<LLVMType elty, int addrspace>
140 : LLVMType<iPTR>{
141 LLVMType ElTy = elty;
145 class LLVMPointerType<LLVMType elty>
148 class LLVMAnyPointerType<LLVMType elty>
149 : LLVMType<iPTRAny>{
150 LLVMType ElTy = elty;
162 : LLVMType<OtherVT>{
176 class LLVMScalarOrSameVectorWidth<int idx, LLVMType elty>
[all …]
DIntrinsicsSystemZ.td13 class SystemZUnaryConv<string name, LLVMType result, LLVMType arg>
17 class SystemZUnary<string name, LLVMType type>
20 class SystemZUnaryConvCC<LLVMType result, LLVMType arg>
23 class SystemZUnaryCC<LLVMType type>
26 class SystemZBinaryConv<string name, LLVMType result, LLVMType arg>
30 class SystemZBinary<string name, LLVMType type>
33 class SystemZBinaryInt<string name, LLVMType type>
37 class SystemZBinaryConvCC<LLVMType result, LLVMType arg>
40 class SystemZBinaryConvIntCC<LLVMType result, LLVMType arg>
44 class SystemZBinaryCC<LLVMType type>
[all …]
/external/llvm-project/mlir/lib/Conversion/AsyncToLLVM/
DAsyncToLLVM.cpp55 auto ref = LLVM::LLVMType::getInt8PtrTy(ctx); in addOrDropRefFunctionType()
81 auto hdl = LLVM::LLVMType::getInt8PtrTy(ctx); in executeFunctionType()
93 auto hdl = LLVM::LLVMType::getInt8PtrTy(ctx); in awaitAndExecuteFunctionType()
99 auto hdl = LLVM::LLVMType::getInt8PtrTy(ctx); in awaitAllAndExecuteFunctionType()
105 static LLVM::LLVMType resumeFunctionType(MLIRContext *ctx) { in resumeFunctionType()
106 auto voidTy = LLVM::LLVMType::getVoidTy(ctx); in resumeFunctionType()
107 auto i8Ptr = LLVM::LLVMType::getInt8PtrTy(ctx); in resumeFunctionType()
108 return LLVM::LLVMType::getFunctionTy(voidTy, {i8Ptr}, false); in resumeFunctionType()
153 LLVM::LLVMType ret, in addLLVMFuncDecl()
154 ArrayRef<LLVM::LLVMType> params) { in addLLVMFuncDecl()
[all …]
/external/llvm/test/TableGen/
Dintrinsic-varargs.td12 class LLVMType<ValueType vt> {
16 class Intrinsic<string name, list<LLVMType> param_types = []> {
20 list<LLVMType> RetTypes = [];
21 list<LLVMType> ParamTypes = param_types;
27 def llvm_vararg_ty : LLVMType<isVoid>; // this means vararg here
/external/llvm-project/mlir/lib/Conversion/VectorToROCDL/
DVectorToROCDL.cpp33 LLVM::LLVMType &vecTy, Value &dwordConfig, Value &vindex, in replaceTransferOpWithMubuf()
43 LLVM::LLVMType &vecTy, Value &dwordConfig, Value &vindex, in replaceTransferOpWithMubuf()
83 LLVM::LLVMType vecTy = in matchAndRewrite()
84 toLLVMTy(xferOp.getVectorType()).template cast<LLVM::LLVMType>(); in matchAndRewrite()
124 LLVM::LLVMType::getVectorTy( in matchAndRewrite()
125 toLLVMTy(i64Ty).template cast<LLVM::LLVMType>(), 2), in matchAndRewrite()
128 loc, toLLVMTy(i64Ty).template cast<LLVM::LLVMType>(), dataPtr); in matchAndRewrite()
132 LLVM::LLVMType::getVectorTy( in matchAndRewrite()
133 toLLVMTy(i64Ty).template cast<LLVM::LLVMType>(), 2), in matchAndRewrite()

1234