Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DPatternInit.cpp78 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 DCGExprConstant.cpp567 InitListExpr *ILE, QualType StructTy);
H A DCGOpenMPRuntime.cpp11822 QualType StructTy = std::get<0>(It->getSecond()); in checkAndEmitLastprivateConditional() local
11827 CGF.ConvertTypeForMem(CGF.getContext().getPointerType(StructTy)), in checkAndEmitLastprivateConditional()
11828 CGF.ConvertTypeForMem(StructTy)); in checkAndEmitLastprivateConditional()
11830 CGF.MakeAddrLValue(StructAddr, StructTy, AlignmentSource::Decl); in checkAndEmitLastprivateConditional()
H A DCGBuiltin.cpp10115 auto *StructTy = dyn_cast<StructType>(Call->getType()); in FormSVEBuiltinResult() local
10116 if (!StructTy) in FormSVEBuiltinResult()
10119 auto *VTy = dyn_cast<ScalableVectorType>(StructTy->getTypeAtIndex(0U)); in FormSVEBuiltinResult()
10122 unsigned N = StructTy->getNumElements(); in FormSVEBuiltinResult()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/
H A DTarget.cpp127 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMElementAtOffset() argument
129 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
133 unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMOffsetOfElement() argument
135 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm-c/
H A DTarget.h278 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy,
284 LLVMTypeRef StructTy, unsigned Element);
H A DCore.h1428 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes,
1436 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy);
1448 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest);
1455 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i);
1462 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy);
1469 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy);
1476 LLVMBool LLVMIsLiteralStruct(LLVMTypeRef StructTy);
2242 LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy,
/freebsd-14.2/contrib/llvm-project/clang/include/clang/CodeGen/
H A DConstantInitBuilder.h459 llvm::StructType *StructTy;
468 : super(builder, parent), StructTy(structTy) { in ConstantStructBuilderTemplateBase()
481 StructTy = structTy; in suggestType()
489 return AggregateBuilderBase::finishStruct(StructTy); in finishImpl()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp234 Type *StructTy = UMulFunc->getReturnType(); in buildUMulWithOverflowFunc() local
235 Value *Agg = IRB.CreateInsertValue(PoisonValue::get(StructTy), Mul, {0}); in buildUMulWithOverflowFunc()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp796 return unwrap<StructType>(StructTy)->getNumElements(); in LLVMCountStructElementTypes()
800 StructType *Ty = unwrap<StructType>(StructTy); in LLVMGetStructElementTypes()
806 StructType *Ty = unwrap<StructType>(StructTy); in LLVMStructGetTypeAtIndex()
810 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy) { in LLVMIsPackedStruct() argument
811 return unwrap<StructType>(StructTy)->isPacked(); in LLVMIsPackedStruct()
814 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy) { in LLVMIsOpaqueStruct() argument
815 return unwrap<StructType>(StructTy)->isOpaque(); in LLVMIsOpaqueStruct()
818 LLVMBool LLVMIsLiteralStruct(LLVMTypeRef StructTy) { in LLVMIsLiteralStruct() argument
819 return unwrap<StructType>(StructTy)->isLiteral(); in LLVMIsLiteralStruct()
1575 LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy, in LLVMConstNamedStruct() argument
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64Arm64ECCallLowering.cpp290 if (auto *StructTy = dyn_cast<StructType>(T)) in canonicalizeThunkType() local
291 if (StructTy->getNumElements() == 1) in canonicalizeThunkType()
292 T = StructTy->getElementType(0); in canonicalizeThunkType()
H A DAArch64ISelLowering.cpp14522 auto *StructTy = cast<StructType>(RetTy); in getTgtMemIntrinsic() local
14523 unsigned NumElts = StructTy->getNumElements(); in getTgtMemIntrinsic()
14524 Type *VecTy = StructTy->getElementType(0); in getTgtMemIntrinsic()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeExtractor.cpp868 StructType *StructTy = nullptr; in constructFunction() local
870 StructTy = StructType::get(M->getContext(), AggParamTy); in constructFunction()
872 StructTy, ArgsInZeroAddressSpace ? 0 : DL.getAllocaAddrSpace())); in constructFunction()
1029 StructTy, &*AggAI, Idx, "gep_" + inputs[i]->getName(), TI); in constructFunction()
1030 RewriteVal = new LoadInst(StructTy->getElementType(aggIdx), GEP, in constructFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp1055 auto *StructTy = cast<StructType>(Ty); in solveDIType() local
1057 for (unsigned I = 0; I < StructTy->getNumElements(); I++) { in solveDIType()
1058 DIType *DITy = solveDIType(Builder, StructTy->getElementType(I), Layout, in solveDIType()
1064 Layout.getStructLayout(StructTy)->getElementOffsetInBits(I), in solveDIType()
H A DCoroSplit.cpp553 auto *StructTy = cast<StructType>(AsyncSuspend->getType()); in getFunctionTypeFromAsyncSuspend() local
556 return FunctionType::get(VoidTy, StructTy->elements(), false); in getFunctionTypeFromAsyncSuspend()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp251 StructType *StructTy = cast<StructType>(Ty); in isDenselyPacked() local
252 const StructLayout *Layout = DL.getStructLayout(StructTy); in isDenselyPacked()
254 for (unsigned I = 0, E = StructTy->getNumElements(); I < E; ++I) { in isDenselyPacked()
255 Type *ElTy = StructTy->getElementType(I); in isDenselyPacked()