| /llvm-project-15.0.7/llvm/test/Transforms/SLPVectorizer/X86/ |
| H A D | pr42022.ll | 44 %StructTy = type { float, float} 62 ; CHECK-NEXT: ret [2 x %StructTy] [[RET1]] 84 %Ret0 = insertvalue [2 x %StructTy] undef, %StructTy %StructIn1, 0 85 %Ret1 = insertvalue [2 x %StructTy] %Ret0, %StructTy %StructIn3, 1 86 ret [2 x %StructTy] %Ret1 89 define {%StructTy, %StructTy} @StructOfStruct(float *%Ptr) { 127 %Ret0 = insertvalue {%StructTy, %StructTy} undef, %StructTy %StructIn1, 0 128 %Ret1 = insertvalue {%StructTy, %StructTy} %Ret0, %StructTy %StructIn3, 1 129 ret {%StructTy, %StructTy} %Ret1 170 %Ret0 = insertvalue {%StructTy, float, float} undef, %StructTy %StructIn1, 0 [all …]
|
| H A D | pr42022-inseltpoison.ll | 44 %StructTy = type { float, float} 62 ; CHECK-NEXT: ret [2 x %StructTy] [[RET1]] 84 %Ret0 = insertvalue [2 x %StructTy] undef, %StructTy %StructIn1, 0 85 %Ret1 = insertvalue [2 x %StructTy] %Ret0, %StructTy %StructIn3, 1 86 ret [2 x %StructTy] %Ret1 89 define {%StructTy, %StructTy} @StructOfStruct(float *%Ptr) { 127 %Ret0 = insertvalue {%StructTy, %StructTy} undef, %StructTy %StructIn1, 0 128 %Ret1 = insertvalue {%StructTy, %StructTy} %Ret0, %StructTy %StructIn3, 1 129 ret {%StructTy, %StructTy} %Ret1 170 %Ret0 = insertvalue {%StructTy, float, float} undef, %StructTy %StructIn1, 0 [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | PatternInit.cpp | 78 auto *StructTy = cast<llvm::StructType>(Ty); in initializationPatternFor() local 79 llvm::SmallVector<llvm::Constant *, 8> Struct(StructTy->getNumElements()); in initializationPatternFor() 81 Struct[El] = initializationPatternFor(CGM, StructTy->getElementType(El)); in initializationPatternFor() 82 return llvm::ConstantStruct::get(StructTy, Struct); in initializationPatternFor()
|
| H A D | CGExprConstant.cpp | 565 InitListExpr *ILE, QualType StructTy);
|
| H A D | CGOpenMPRuntime.cpp | 12671 QualType StructTy = std::get<0>(It->getSecond()); in checkAndEmitLastprivateConditional() local 12676 CGF.ConvertTypeForMem(CGF.getContext().getPointerType(StructTy)), in checkAndEmitLastprivateConditional() 12677 CGF.ConvertTypeForMem(StructTy)); in checkAndEmitLastprivateConditional() 12679 CGF.MakeAddrLValue(StructAddr, StructTy, AlignmentSource::Decl); in checkAndEmitLastprivateConditional()
|
| /llvm-project-15.0.7/llvm/lib/Target/ |
| H A D | Target.cpp | 132 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMElementAtOffset() argument 134 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset() 138 unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMOffsetOfElement() argument 140 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
|
| /llvm-project-15.0.7/llvm/unittests/Analysis/ |
| H A D | TargetLibraryInfoTest.cpp | 64 auto *StructTy = StructType::getTypeByName(Context, "foo"); in TEST_F() local 65 auto *InvalidFTy = FunctionType::get(StructTy, /*isVarArg=*/false); in TEST_F()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Coroutines/ |
| H A D | Coroutines.cpp | 597 auto *StructTy = cast<StructType>( in checkAsyncFuncPointer() local 599 if (StructTy->isOpaque() || !StructTy->isPacked() || in checkAsyncFuncPointer() 600 StructTy->getNumElements() != 2 || in checkAsyncFuncPointer() 601 !StructTy->getElementType(0)->isIntegerTy(32) || in checkAsyncFuncPointer() 602 !StructTy->getElementType(1)->isIntegerTy(32)) in checkAsyncFuncPointer()
|
| H A D | CoroFrame.cpp | 900 auto *StructTy = cast<StructType>(Ty); in solveDIType() local 902 for (unsigned I = 0; I < StructTy->getNumElements(); I++) { in solveDIType() 903 DIType *DITy = solveDIType(Builder, StructTy->getElementType(I), Layout, in solveDIType() 909 Layout.getStructLayout(StructTy)->getElementOffsetInBits(I), in solveDIType()
|
| H A D | CoroSplit.cpp | 487 auto *StructTy = cast<StructType>(AsyncSuspend->getType()); in getFunctionTypeFromAsyncSuspend() local 490 return FunctionType::get(VoidTy, StructTy->elements(), false); in getFunctionTypeFromAsyncSuspend()
|
| /llvm-project-15.0.7/llvm/include/llvm-c/ |
| H A D | Target.h | 278 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, 284 LLVMTypeRef StructTy, unsigned Element);
|
| H A D | Core.h | 1343 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, 1351 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy); 1363 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest); 1370 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i); 1377 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy); 1384 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy); 1391 LLVMBool LLVMIsLiteralStruct(LLVMTypeRef StructTy); 2116 LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy,
|
| /llvm-project-15.0.7/clang/include/clang/CodeGen/ |
| H A D | ConstantInitBuilder.h | 464 llvm::StructType *StructTy; 473 : super(builder, parent), StructTy(structTy) { in ConstantStructBuilderTemplateBase() 486 StructTy = structTy; in suggestType() 494 return AggregateBuilderBase::finishStruct(StructTy); in finishImpl()
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVPrepareFunctions.cpp | 221 Type *StructTy = UMulFunc->getReturnType(); in buildUMulWithOverflowFunc() local 222 Value *Agg = IRB.CreateInsertValue(UndefValue::get(StructTy), Mul, {0}); in buildUMulWithOverflowFunc()
|
| /llvm-project-15.0.7/llvm/bindings/ocaml/llvm/ |
| H A D | llvm_ocaml.c | 537 value llvm_struct_element_types(LLVMTypeRef StructTy) { in llvm_struct_element_types() argument 538 value Tys = caml_alloc_tuple_uninit(LLVMCountStructElementTypes(StructTy)); in llvm_struct_element_types() 539 LLVMGetStructElementTypes(StructTy, (LLVMTypeRef *)Op_val(Tys)); in llvm_struct_element_types() 544 value llvm_is_packed(LLVMTypeRef StructTy) { in llvm_is_packed() argument 545 return Val_bool(LLVMIsPackedStruct(StructTy)); in llvm_is_packed() 549 value llvm_is_opaque(LLVMTypeRef StructTy) { in llvm_is_opaque() argument 550 return Val_bool(LLVMIsOpaqueStruct(StructTy)); in llvm_is_opaque() 554 value llvm_is_literal(LLVMTypeRef StructTy) { in llvm_is_literal() argument 555 return Val_bool(LLVMIsLiteralStruct(StructTy)); in llvm_is_literal()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Core.cpp | 746 return unwrap<StructType>(StructTy)->getNumElements(); in LLVMCountStructElementTypes() 750 StructType *Ty = unwrap<StructType>(StructTy); in LLVMGetStructElementTypes() 756 StructType *Ty = unwrap<StructType>(StructTy); in LLVMStructGetTypeAtIndex() 760 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy) { in LLVMIsPackedStruct() argument 761 return unwrap<StructType>(StructTy)->isPacked(); in LLVMIsPackedStruct() 764 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy) { in LLVMIsOpaqueStruct() argument 765 return unwrap<StructType>(StructTy)->isOpaque(); in LLVMIsOpaqueStruct() 768 LLVMBool LLVMIsLiteralStruct(LLVMTypeRef StructTy) { in LLVMIsLiteralStruct() argument 769 return unwrap<StructType>(StructTy)->isLiteral(); in LLVMIsLiteralStruct() 1489 LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy, in LLVMConstNamedStruct() argument [all …]
|
| /llvm-project-15.0.7/llvm/unittests/FuzzMutate/ |
| H A D | OperationsTest.cpp | 336 Type *StructTy = StructType::create(Ctx, {Int8PtrTy, Int32Ty}); in TEST() local 346 Constant *SVal = UndefValue::get(StructTy); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | CodeExtractor.cpp | 864 StructType *StructTy = nullptr; in constructFunction() local 866 StructTy = StructType::get(M->getContext(), AggParamTy); in constructFunction() 867 ParamTy.push_back(PointerType::getUnqual(StructTy)); in constructFunction() 1019 StructTy, &*AggAI, Idx, "gep_" + inputs[i]->getName(), TI); in constructFunction() 1020 RewriteVal = new LoadInst(StructTy->getElementType(aggIdx), GEP, in constructFunction()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 1259 if (StructType *StructTy = dyn_cast<StructType>(DstTy)) in getInstructionLatency() local 1260 DstTy = StructTy->getElementType(0); in getInstructionLatency()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | MetadataTest.cpp | 460 auto *StructTy = cast<DICompositeType>(getCompositeType()); in TEST_F() local 462 Context, dwarf::DW_TAG_pointer_type, "", nullptr, 0, nullptr, StructTy, in TEST_F() 464 StructTy->replaceElements(MDTuple::get(Context, PointerTy)); in TEST_F() 467 /*LineNo=*/8, StructTy, /*ArgNo=*/2, Flags, in TEST_F() 476 StructTy->print((SS << "\n").indent(2)); in TEST_F() 478 StructTy->getRawElements()->print((SS << "\n").indent(4)); in TEST_F() 480 auto Elements = StructTy->getElements(); in TEST_F()
|
| H A D | PatternMatch.cpp | 1618 Type *StructTy = StructType::create(IRB.getContext(), in TEST_F() local 1621 IRB.CreateInsertValue(UndefValue::get(StructTy), IRB.getInt32(20), 0); in TEST_F()
|
| /llvm-project-15.0.7/llvm/unittests/Frontend/ |
| H A D | OpenMPIRBuilderTest.cpp | 1145 Type *StructTy = StructType::get(I32Ty, I32PtrTy); in TEST_F() local 1146 Type *StructPtrTy = StructTy->getPointerTo(); in TEST_F() 1156 FunctionCallee RetStructFunc = M->getOrInsertFunction("ret_struct", StructTy); in TEST_F() 1158 M->getOrInsertFunction("take_struct", VoidTy, StructTy); in TEST_F()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | AttributorAttributes.cpp | 221 StructType *StructTy = cast<StructType>(Ty); in isDenselyPacked() local 222 const StructLayout *Layout = DL.getStructLayout(StructTy); in isDenselyPacked() 224 for (unsigned I = 0, E = StructTy->getNumElements(); I < E; ++I) { in isDenselyPacked() 225 Type *ElTy = StructTy->getElementType(I); in isDenselyPacked()
|