Home
last modified time | relevance | path

Searched refs:LLVMStructType (Results 1 – 16 of 16) sorted by relevance

/external/llvm-project/mlir/lib/Dialect/LLVMIR/IR/
DLLVMTypes.cpp67 LLVMTokenType, LLVMStructType, LLVMArrayType, in getPrimitiveSizeInBits()
153 return cast<LLVMStructType>().getBody()[i]; in getStructElementType()
157 return cast<LLVMStructType>().getBody().size(); in getStructNumElements()
160 bool LLVMType::isStructTy() { return isa<LLVMStructType>(); } in isStructTy()
210 return LLVMStructType::getLiteral(context, elements, isPacked); in getStructTy()
238 auto type = LLVMStructType::getIdentified(context, stringName); in createStructTy()
252 structType.cast<LLVMStructType>().setBody(elements, isPacked); in setStructTyBody()
398 bool LLVMStructType::isValidElementType(LLVMType type) { in isValidElementType()
403 LLVMStructType LLVMStructType::getIdentified(MLIRContext *context, in getIdentified()
408 LLVMStructType LLVMStructType::getIdentifiedChecked(Location loc, in getIdentifiedChecked()
[all …]
DLLVMTypeSyntax.cpp45 .Case<LLVMStructType>([&](Type) { return "struct"; }) in getTypeKeyword()
53 static void printStructTypeBody(llvm::raw_ostream &os, LLVMStructType type, in printStructTypeBody()
79 static void printStructType(llvm::raw_ostream &os, LLVMStructType type, in printStructType()
167 if (auto structType = type.dyn_cast<LLVMStructType>()) in printTypeImpl()
307 static LLVMStructType trySetStructBody(LLVMStructType type, in trySetStructBody()
313 if (!LLVMStructType::isValidElementType(t)) { in trySetStructBody()
316 return LLVMStructType(); in trySetStructBody()
329 return LLVMStructType(); in trySetStructBody()
337 static LLVMStructType parseStructType(DialectAsmParser &parser, in parseStructType()
342 return LLVMStructType(); in parseStructType()
[all …]
DLLVMDialect.cpp1779 LLVMStructType>(); in initialize()
/external/llvm-project/mlir/include/mlir/Dialect/LLVMIR/
DLLVMTypes.h427 class LLVMStructType : public Type::TypeBase<LLVMStructType, LLVMType,
441 static LLVMStructType getIdentified(MLIRContext *context, StringRef name);
442 static LLVMStructType getIdentifiedChecked(Location loc, StringRef name);
446 static LLVMStructType getLiteral(MLIRContext *context,
449 static LLVMStructType getLiteralChecked(Location loc,
459 static LLVMStructType getOpaque(StringRef name, MLIRContext *context);
460 static LLVMStructType getOpaqueChecked(Location loc, StringRef name);
DLLVMOpBase.td108 def LLVM_AnyStruct : Type<CPred<"$_self.isa<::mlir::LLVM::LLVMStructType>()">,
114 CPred<"$_self.cast<::mlir::LLVM::LLVMStructType>().isOpaque()">]>>;
124 CPred<"$_self.isa<::mlir::LLVM::LLVMStructType, "
230 [{convertType(opInst.getResult(0).getType().cast<LLVM::LLVMStructType>()
244 // to be accessed via the LLVMStructType, instead of directly via the result.
/external/llvm-project/mlir/lib/Target/LLVMIR/
DTypeTranslation.cpp76 LLVM::LLVMStructType, LLVM::LLVMFixedVectorType, in translateType()
117 llvm::Type *translate(LLVM::LLVMStructType type) { in translate()
270 return LLVM::LLVMStructType::getLiteral(&context, subtypes, in translate()
275 return LLVM::LLVMStructType::getOpaque(type->getName(), &context); in translate()
277 LLVM::LLVMStructType translated = in translate()
278 LLVM::LLVMStructType::getIdentified(&context, type->getName()); in translate()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld.h71 #define LLVMStructType ILLEGAL_LLVM_FUNCTION macro
/external/tensorflow/tensorflow/compiler/mlir/tools/kernel_gen/transforms/
Dtf_kernel_to_llvm_pass.cc108 auto struct_type = LLVM::LLVMStructType::getNewIdentified( in generateParamsArray()
/external/llvm/include/llvm-c/
DCore.h1000 LLVMTypeRef LLVMStructType(LLVMTypeRef *ElementTypes, unsigned ElementCount,
/external/llvm-project/llvm/include/llvm-c/
DCore.h1293 LLVMTypeRef LLVMStructType(LLVMTypeRef *ElementTypes, unsigned ElementCount,
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm-c/
DCore.h1281 LLVMTypeRef LLVMStructType(LLVMTypeRef *ElementTypes, unsigned ElementCount,
/external/llvm/lib/IR/
DCore.cpp513 LLVMTypeRef LLVMStructType(LLVMTypeRef *ElementTypes, in LLVMStructType() function
/external/llvm/bindings/go/llvm/
Dir.go568 t.C = C.LLVMStructType(pt, ptlen, boolToLLVMBool(packed))
/external/llvm-project/llvm/bindings/go/llvm/
Dir.go633 t.C = C.LLVMStructType(pt, ptlen, boolToLLVMBool(packed))
/external/llvm-project/llvm/lib/IR/
DCore.cpp688 LLVMTypeRef LLVMStructType(LLVMTypeRef *ElementTypes, in LLVMStructType() function
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DCore.cpp676 LLVMTypeRef LLVMStructType(LLVMTypeRef *ElementTypes, in LLVMStructType() function