Home
last modified time | relevance | path

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

/freebsd/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.cpp569 QualType StructTy);
H A DCGOpenMPRuntime.cpp11853 QualType StructTy = std::get<0>(It->getSecond()); in checkAndEmitLastprivateConditional() local
11858 CGF.ConvertTypeForMem(CGF.getContext().getPointerType(StructTy)), in checkAndEmitLastprivateConditional()
11859 CGF.ConvertTypeForMem(StructTy)); in checkAndEmitLastprivateConditional()
11861 CGF.MakeAddrLValue(StructAddr, StructTy, AlignmentSource::Decl); in checkAndEmitLastprivateConditional()
H A DCGBuiltin.cpp10382 auto *StructTy = dyn_cast<StructType>(Call->getType()); in FormSVEBuiltinResult() local
10383 if (!StructTy) in FormSVEBuiltinResult()
10386 auto *VTy = dyn_cast<ScalableVectorType>(StructTy->getTypeAtIndex(0U)); in FormSVEBuiltinResult()
10389 unsigned N = StructTy->getNumElements(); in FormSVEBuiltinResult()
/freebsd/contrib/llvm-project/llvm/lib/Target/
H A DTarget.cpp128 unsigned LLVMElementAtOffset(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMElementAtOffset() argument
130 StructType *STy = unwrap<StructType>(StructTy); in LLVMElementAtOffset()
134 unsigned long long LLVMOffsetOfElement(LLVMTargetDataRef TD, LLVMTypeRef StructTy, in LLVMOffsetOfElement() argument
136 StructType *STy = unwrap<StructType>(StructTy); in LLVMOffsetOfElement()
/freebsd/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.h1477 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes,
1485 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy);
1497 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest);
1504 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i);
1511 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy);
1518 LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy);
1525 LLVMBool LLVMIsLiteralStruct(LLVMTypeRef StructTy);
2382 LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy,
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DConstantInitBuilder.h467 llvm::StructType *StructTy;
476 : super(builder, parent), StructTy(structTy) { in ConstantStructBuilderTemplateBase()
489 StructTy = structTy; in suggestType()
497 return AggregateBuilderBase::finishStruct(StructTy); in finishImpl()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DCore.cpp817 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, in LLVMStructSetBody() argument
820 unwrap<StructType>(StructTy)->setBody(Tys, Packed != 0); in LLVMStructSetBody()
823 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy) { in LLVMCountStructElementTypes() argument
824 return unwrap<StructType>(StructTy)->getNumElements(); in LLVMCountStructElementTypes()
827 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest) { in LLVMGetStructElementTypes() argument
828 StructType *Ty = unwrap<StructType>(StructTy); in LLVMGetStructElementTypes()
833 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i) { in LLVMStructGetTypeAtIndex() argument
834 StructType *Ty = unwrap<StructType>(StructTy); in LLVMStructGetTypeAtIndex()
838 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy) { in LLVMIsPackedStruct() argument
839 return unwrap<StructType>(StructTy)->isPacked(); in LLVMIsPackedStruct()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp363 Type *StructTy = UMulFunc->getReturnType(); in buildUMulWithOverflowFunc() local
364 Value *Agg = IRB.CreateInsertValue(PoisonValue::get(StructTy), Mul, {0}); in buildUMulWithOverflowFunc()
/freebsd/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()
1045 StructTy, &*AggAI, Idx, "gep_" + inputs[i]->getName(), TI); in constructFunction()
1046 RewriteVal = new LoadInst(StructTy->getElementType(aggIdx), GEP, in constructFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64Arm64ECCallLowering.cpp341 if (auto *StructTy = dyn_cast<StructType>(T)) in canonicalizeThunkType() local
342 if (StructTy->getNumElements() == 1) in canonicalizeThunkType()
343 T = StructTy->getElementType(0); in canonicalizeThunkType()
H A DAArch64ISelLowering.cpp15550 auto *StructTy = cast<StructType>(RetTy); in getTgtMemIntrinsic() local
15551 unsigned NumElts = StructTy->getNumElements(); in getTgtMemIntrinsic()
15552 Type *VecTy = StructTy->getElementType(0); in getTgtMemIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroFrame.cpp1058 auto *StructTy = cast<StructType>(Ty); in solveDIType() local
1060 for (unsigned I = 0; I < StructTy->getNumElements(); I++) { in solveDIType()
1061 DIType *DITy = solveDIType(Builder, StructTy->getElementType(I), Layout, in solveDIType()
1067 Layout.getStructLayout(StructTy)->getElementOffsetInBits(I), in solveDIType()
H A DCoroSplit.cpp534 auto *StructTy = cast<StructType>(AsyncSuspend->getType()); in getFunctionTypeFromAsyncSuspend() local
537 return FunctionType::get(VoidTy, StructTy->elements(), false); in getFunctionTypeFromAsyncSuspend()
/freebsd/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()