| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | VectorTypeUtils.cpp | 16 Type *llvm::toVectorizedStructTy(StructType *StructTy, ElementCount EC) { in toVectorizedStructTy() argument 18 return StructTy; in toVectorizedStructTy() 19 assert(isUnpackedStructLiteral(StructTy) && in toVectorizedStructTy() 21 assert(all_of(StructTy->elements(), VectorType::isValidElementType) && in toVectorizedStructTy() 24 StructTy->getContext(), in toVectorizedStructTy() 25 map_to_vector(StructTy->elements(), [&](Type *ElTy) -> Type * { in toVectorizedStructTy() 32 Type *llvm::toScalarizedStructTy(StructType *StructTy) { in toScalarizedStructTy() argument 33 assert(isUnpackedStructLiteral(StructTy) && in toScalarizedStructTy() 36 StructTy->getContext(), in toScalarizedStructTy() 37 map_to_vector(StructTy->elements(), [](Type *ElTy) -> Type * { in toScalarizedStructTy() [all …]
|
| H A D | VFABIDemangler.cpp | 351 StructType *StructTy = dyn_cast<StructType>(RetTy); in getScalableECFromSignature() local 352 if (StructTy && !isUnpackedStructLiteral(StructTy)) in getScalableECFromSignature()
|
| H A D | Core.cpp | 815 void LLVMStructSetBody(LLVMTypeRef StructTy, LLVMTypeRef *ElementTypes, in LLVMStructSetBody() argument 818 unwrap<StructType>(StructTy)->setBody(Tys, Packed != 0); in LLVMStructSetBody() 821 unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy) { in LLVMCountStructElementTypes() argument 822 return unwrap<StructType>(StructTy)->getNumElements(); in LLVMCountStructElementTypes() 825 void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest) { in LLVMGetStructElementTypes() argument 826 StructType *Ty = unwrap<StructType>(StructTy); in LLVMGetStructElementTypes() 831 LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, unsigned i) { in LLVMStructGetTypeAtIndex() argument 832 StructType *Ty = unwrap<StructType>(StructTy); in LLVMStructGetTypeAtIndex() 836 LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy) { in LLVMIsPackedStruct() argument 837 return unwrap<StructType>(StructTy)->isPacked(); in LLVMIsPackedStruct() [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | VectorTypeUtils.h | 34 LLVM_ABI Type *toVectorizedStructTy(StructType *StructTy, ElementCount EC); 38 LLVM_ABI Type *toScalarizedStructTy(StructType *StructTy); 42 LLVM_ABI bool isVectorizedStructTy(StructType *StructTy); 46 LLVM_ABI bool canVectorizeStructTy(StructType *StructTy); 56 if (StructType *StructTy = dyn_cast<StructType>(Ty)) in toVectorizedTy() local 57 return toVectorizedStructTy(StructTy, EC); in toVectorizedTy() 66 if (StructType *StructTy = dyn_cast<StructType>(Ty)) in toScalarizedTy() local 67 return toScalarizedStructTy(StructTy); in toScalarizedTy() 74 if (StructType *StructTy = dyn_cast<StructType>(Ty)) in isVectorizedTy() local 75 return isVectorizedStructTy(StructTy); in isVectorizedTy() [all …]
|
| H A D | Operator.h | 272 if (auto *StructTy = dyn_cast<StructType>(Ty)) { 273 if (!StructTy->isLiteral() || !StructTy->containsHomogeneousTypes()) 275 Ty = StructTy->elements().front();
|
| /freebsd/contrib/llvm-project/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 | HLSLBufferLayoutBuilder.cpp | 153 llvm::StructType *StructTy = in createLayoutType() local 158 CGM.getLLVMContext(), LayoutTypeName, {StructTy}, Layout); in createLayoutType()
|
| H A D | CGExprConstant.cpp | 576 QualType StructTy);
|
| H A D | CGOpenMPRuntime.cpp | 11918 QualType StructTy = std::get<0>(It->getSecond()); in checkAndEmitLastprivateConditional() local 11923 CGF.ConvertTypeForMem(CGF.getContext().getPointerType(StructTy)), in checkAndEmitLastprivateConditional() 11924 CGF.ConvertTypeForMem(StructTy)); in checkAndEmitLastprivateConditional() 11926 CGF.MakeAddrLValue(StructAddr, StructTy, AlignmentSource::Decl); in checkAndEmitLastprivateConditional()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ |
| H A D | Target.cpp | 128 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 D | Target.h | 289 LLVMTypeRef StructTy, 295 LLVMTypeRef StructTy,
|
| H A D | Core.h | 1526 LLVM_C_ABI void LLVMStructSetBody(LLVMTypeRef StructTy, 1535 LLVM_C_ABI unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy); 1547 LLVM_C_ABI void LLVMGetStructElementTypes(LLVMTypeRef StructTy, 1555 LLVM_C_ABI LLVMTypeRef LLVMStructGetTypeAtIndex(LLVMTypeRef StructTy, 1563 LLVM_C_ABI LLVMBool LLVMIsPackedStruct(LLVMTypeRef StructTy); 1570 LLVM_C_ABI LLVMBool LLVMIsOpaqueStruct(LLVMTypeRef StructTy); 1577 LLVM_C_ABI LLVMBool LLVMIsLiteralStruct(LLVMTypeRef StructTy); 2479 LLVM_C_ABI LLVMValueRef LLVMConstNamedStruct(LLVMTypeRef StructTy,
|
| /freebsd/contrib/llvm-project/clang/include/clang/CodeGen/ |
| H A D | ConstantInitBuilder.h | 467 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/include/llvm/Transforms/Utils/ |
| H A D | CodeExtractor.h | 290 StructType *&StructTy);
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/ |
| H A D | RISCV.cpp | 994 llvm::Type *StructTy = llvm::StructType::get(Int32Ty, ArrayOfInt64Ty); in loadRISCVFeatureBits() local 996 CGM.CreateRuntimeVariable(StructTy, "__riscv_feature_bits"); in loadRISCVFeatureBits() 1002 Builder.CreateInBoundsGEP(StructTy, RISCVFeaturesBits, GEPIndices); in loadRISCVFeatureBits() 1049 llvm::StructType *StructTy = llvm::StructType::get(Int32Ty, Int64Ty, Int64Ty); in EmitRISCVCpuIs() local 1051 CGM.CreateRuntimeVariable(StructTy, "__riscv_cpu_model"); in EmitRISCVCpuIs() 1055 Value *Ptr = Builder.CreateStructGEP(StructTy, RISCVCPUModel, Index); in EmitRISCVCpuIs() 1056 Value *CPUID = Builder.CreateAlignedLoad(StructTy->getTypeAtIndex(Index), in EmitRISCVCpuIs()
|
| H A D | ARM.cpp | 4386 if (auto *StructTy = dyn_cast<StructType>(Ty)) { in EmitSVEReinterpret() local 4389 for (unsigned I = 0; I < StructTy->getNumElements(); ++I) { in EmitSVEReinterpret() 4391 Value *Out = Builder.CreateBitCast(In, StructTy->getTypeAtIndex(I)); in EmitSVEReinterpret()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | CodeExtractor.cpp | 834 const Twine &Name, ValueSet &StructValues, StructType *&StructTy) { in constructFunctionDeclaration() argument 876 StructTy = StructType::get(M->getContext(), AggParamTy); in constructFunctionDeclaration() 1514 StructType *StructTy = nullptr; in extractCodeRegion() local 1517 StructValues, StructTy); in extractCodeRegion() 1520 emitFunctionBody(inputs, outputs, StructValues, newFunction, StructTy, header, in extractCodeRegion() 1525 inputs, outputs, StructValues, newFunction, StructTy, oldFunction, ReplIP, in extractCodeRegion()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | LoopVectorizationLegality.cpp | 786 auto *StructTy = dyn_cast<StructType>(Ty); in canWidenCallReturnType() local 790 if (StructTy && !StructTy->containsHomogeneousTypes()) in canWidenCallReturnType() 792 return canVectorizeTy(StructTy); in canWidenCallReturnType()
|
| H A D | VPlanAnalysis.cpp | 165 auto *StructTy = cast<StructType>(inferScalarType(R->getOperand(0))); in inferScalarTypeForRecipe() local 167 return StructTy->getTypeAtIndex(CI->getZExtValue()); in inferScalarTypeForRecipe()
|
| H A D | VPlan.cpp | 412 if (auto *StructTy = dyn_cast<StructType>(WideValue->getType())) { in packScalarIntoVectorizedValue() local 414 for (unsigned I = 0, E = StructTy->getNumElements(); I != E; I++) { in packScalarIntoVectorizedValue()
|
| H A D | VPlanRecipes.cpp | 699 auto *StructTy = in generate() local 701 Value *Res = PoisonValue::get(toVectorizedTy(StructTy, State.VF)); in generate() 703 for (unsigned FieldIndex = 0; FieldIndex != StructTy->getNumElements(); in generate()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64Arm64ECCallLowering.cpp | 336 if (auto *StructTy = dyn_cast<StructType>(T)) in canonicalizeThunkType() local 337 if (StructTy->getNumElements() == 1) in canonicalizeThunkType() 338 T = StructTy->getElementType(0); in canonicalizeThunkType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroFrame.cpp | 638 auto *StructTy = cast<StructType>(Ty); in solveDIType() local 640 for (unsigned I = 0; I < StructTy->getNumElements(); I++) { in solveDIType() 641 DIType *DITy = solveDIType(Builder, StructTy->getElementType(I), Layout, in solveDIType() 647 Layout.getStructLayout(StructTy)->getElementOffsetInBits(I), in solveDIType()
|
| H A D | CoroSplit.cpp | 443 auto *StructTy = cast<StructType>(AsyncSuspend->getType()); in getFunctionTypeFromAsyncSuspend() local 446 return FunctionType::get(VoidTy, StructTy->elements(), false); in getFunctionTypeFromAsyncSuspend()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/ |
| H A D | AttributorAttributes.cpp | 252 StructType *StructTy = cast<StructType>(Ty); in isDenselyPacked() local 253 const StructLayout *Layout = DL.getStructLayout(StructTy); in isDenselyPacked() 255 for (unsigned I = 0, E = StructTy->getNumElements(); I < E; ++I) { in isDenselyPacked() 256 Type *ElTy = StructTy->getElementType(I); in isDenselyPacked()
|