| /llvm-project-15.0.7/clang/include/clang/CodeGen/ |
| H A D | ConstantInitBuilder.h | 328 llvm::Constant *finishStruct(llvm::StructType *structTy); 472 llvm::StructType *structTy) in ConstantStructBuilderTemplateBase() argument 473 : super(builder, parent), StructTy(structTy) { in ConstantStructBuilderTemplateBase() 474 if (structTy) this->Packed = structTy->isPacked(); in ConstantStructBuilderTemplateBase() 484 void suggestType(llvm::StructType *structTy) { in suggestType() argument 485 if (this->size() == structTy->getNumElements()) { in suggestType() 486 StructTy = structTy; in suggestType() 518 StructBuilder beginStruct(llvm::StructType *structTy = nullptr) { 519 return StructBuilder(static_cast<InitBuilder&>(*this), nullptr, structTy); 572 llvm::StructType *structTy) in ConstantStructBuilder() argument [all …]
|
| H A D | CGFunctionInfo.h | 370 if (auto structTy = in getCoerceAndExpandTypeSequence() local 372 return structTy->elements(); in getCoerceAndExpandTypeSequence()
|
| /llvm-project-15.0.7/mlir/unittests/Dialect/LLVMIR/ |
| H A D | LLVMTypeTest.cpp | 17 auto structTy = LLVMStructType::getIdentified(&context, "foo"); in TEST_F() local 18 ASSERT_TRUE(bool(structTy)); in TEST_F() 19 ASSERT_TRUE(structTy.hasTrait<TypeTrait::IsMutable>()); in TEST_F()
|
| /llvm-project-15.0.7/clang/unittests/CodeGen/ |
| H A D | CodeGenExternalTest.cpp | 204 auto* structTy = dyn_cast<llvm::StructType>(llvmTy); in test_codegen_fns() local 205 ASSERT_TRUE(structTy != NULL); in test_codegen_fns() 229 llvm::Type* xTy = structTy->getTypeAtIndex(x); in test_codegen_fns() 230 llvm::Type* yTy = structTy->getTypeAtIndex(y); in test_codegen_fns() 231 llvm::Type* zTy = structTy->getTypeAtIndex(z); in test_codegen_fns()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/ |
| H A D | Dialect.cpp | 424 StructType structTy = input.getType().cast<StructType>(); in build() local 425 assert(index < structTy.getNumElementTypes()); in build() 426 mlir::Type resultType = structTy.getElementTypes()[index]; in build() 433 StructType structTy = getInput().getType().cast<StructType>(); in verify() local 435 if (indexValue >= structTy.getNumElementTypes()) in verify() 439 if (resultType != structTy.getElementTypes()[indexValue]) in verify()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/ |
| H A D | Target.cpp | 90 auto structTy = mlir::TupleType::get(eleTy.getContext(), range); in complexArgumentType() local 91 marshal.emplace_back(fir::ReferenceType::get(structTy), in complexArgumentType() 109 auto structTy = mlir::TupleType::get(eleTy.getContext(), range); in complexReturnType() local 110 marshal.emplace_back(fir::ReferenceType::get(structTy), in complexReturnType()
|
| H A D | CodeGen.cpp | 1427 if (auto structTy = resultTy.dyn_cast<mlir::LLVM::LLVMStructType>()) { in genBoxOffsetGep() local 1429 resultTy = structTy.getBody()[cstIndex]; in genBoxOffsetGep() 3126 auto structTy = ptr.getType().cast<mlir::LLVM::LLVMStructType>(); in matchAndRewrite() local 3127 assert(!structTy.isOpaque() && !structTy.getBody().empty()); in matchAndRewrite() 3129 mlir::Type ty = structTy.getBody()[0]; in matchAndRewrite() 3156 auto structTy = ty.cast<mlir::LLVM::LLVMStructType>(); in matchAndRewrite() local 3157 assert(!structTy.isOpaque() && !structTy.getBody().empty()); in matchAndRewrite() 3160 rewriter.create<mlir::LLVM::NullOp>(loc, structTy.getBody()[0]); in matchAndRewrite()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | stores-merging.ll | 4 %structTy = type { i8, i32, i32 } 6 @e = common dso_local global %structTy zeroinitializer, align 4 19 store i32 1, ptr getelementptr inbounds (%structTy, ptr @e, i64 0, i32 1), align 4 20 store i32 123, ptr getelementptr inbounds (%structTy, ptr @e, i64 0, i32 2), align 4 21 store i32 456, ptr getelementptr inbounds (%structTy, ptr @e, i64 0, i32 2), align 4 33 store i32 123, ptr getelementptr inbounds (%structTy, ptr @e, i64 0, i32 2), align 4 34 store i32 456, ptr getelementptr inbounds (%structTy, ptr @e, i64 0, i32 2), align 4 35 store i32 1, ptr getelementptr inbounds (%structTy, ptr @e, i64 0, i32 1), align 4
|
| /llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/ |
| H A D | Deserializer.cpp | 977 auto structTy = spirv::StructType::getIdentified(context, structIdentifier); in processStructType() local 978 typeMap[structID] = structTy; in processStructType() 981 deferredStructTypesInfos.push_back({structTy, unresolvedMemberTypes, in processStructType() 984 else if (failed(structTy.trySetBody(memberTypes, offsetInfo, in processStructType()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVOps.cpp | 4182 spirv::StructType structTy = result().getType().dyn_cast<spirv::StructType>(); in verify() local 4184 if (structTy.getNumElements() != 2) in verify() 4187 Type significandTy = structTy.getElementType(0); in verify() 4188 Type exponentTy = structTy.getElementType(1); in verify()
|