Home
last modified time | relevance | path

Searched refs:ElementTy (Results 1 – 25 of 51) sorted by relevance

123

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DDXILResource.cpp67 ElementType ElementTy, uint32_t ElementCount, in SRV() argument
72 RI.Typed.ElementTy = ElementTy; in SRV()
98 uint32_t UniqueID, ElementType ElementTy, in Texture2DMS() argument
103 RI.Typed.ElementTy = ElementTy; in Texture2DMS()
111 ElementType ElementTy, uint32_t ElementCount, uint32_t SampleCount) { in Texture2DMSArray() argument
114 RI.Typed.ElementTy = ElementTy; in Texture2DMSArray()
122 ElementType ElementTy, uint32_t ElementCount, in UAV() argument
128 RI.Typed.ElementTy = ElementTy; in UAV()
167 ElementType ElementTy, uint32_t ElementCount, in RWTexture2DMS() argument
171 RI.Typed.ElementTy = ElementTy; in RWTexture2DMS()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Bitcode/
H A DBitcodeConvenience.h150 template <typename ElementTy> class BCArray : public detail::BCField<true> {
151 static_assert(!ElementTy::IsCompound, "arrays can only contain scalar types");
156 ElementTy::emitOp(abbrev); in emitOp()
186 template <typename ElementTy, typename... Fields> class BCRecordCoding {
191 static_assert(!ElementTy::IsCompound, in emit()
193 ElementTy::assertValid(element); in emit()
203 element = ElementTy::convert(buffer.front()); in read()
223 template <typename ElementTy> class BCRecordCoding<ElementTy> {
228 static_assert(!ElementTy::IsCompound, in emit()
230 ElementTy::assertValid(data); in emit()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DDXILResource.h55 dxil::ElementType ElementTy; member
59 return std::tie(ElementTy, ElementCount) ==
60 std::tie(RHS.ElementTy, RHS.ElementCount);
123 dxil::ElementType ElementTy, uint32_t ElementCount,
133 dxil::ElementType ElementTy,
137 uint32_t UniqueID, dxil::ElementType ElementTy,
142 dxil::ElementType ElementTy, uint32_t ElementCount,
155 dxil::ElementType ElementTy,
160 uint32_t UniqueID, dxil::ElementType ElementTy,
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuilder.h189 llvm::Type *ElementTy,
193 ElementTy, Addr.getAlignment(), Addr.getPointerAuthInfo(),
198 ElementTy, Addr.getAlignment(), Addr.isKnownNonNull());
203 llvm::Type *ElementTy,
206 return Addr.withElementType(ElementTy);
207 return CreateAddrSpaceCast(Addr, Ty, ElementTy, Name);
H A DABIInfoImpl.cpp222 llvm::Type *DirectTy = CGF.ConvertTypeForMem(ValueTy), *ElementTy = DirectTy; in emitVoidPtrVAArg() local
233 Addr = Address(CGF.Builder.CreateLoad(Addr), ElementTy, ValueInfo.Align); in emitVoidPtrVAArg()
438 llvm::Type *ElementTy = CGF.ConvertTypeForMem(Ty); in EmitVAArgInstr() local
439 llvm::Type *BaseTy = llvm::PointerType::getUnqual(ElementTy); in EmitVAArgInstr()
442 return Address(Addr, ElementTy, TyAlignForABI); in EmitVAArgInstr()
H A DCGExprCXX.cpp996 const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, in EmitNewArrayInitializer() argument
1102 ElementTy = ConvertTypeForMem(AllocType); in EmitNewArrayInitializer()
1103 CurPtr = CurPtr.withElementType(ElementTy); in EmitNewArrayInitializer()
1305 ElementTy, CurPtr.emitRawPointer(*this), 1, "array.next"); in EmitNewArrayInitializer()
1317 QualType ElementType, llvm::Type *ElementTy, in EmitNewInitializer() argument
1322 CGF.EmitNewArrayInitializer(E, ElementType, ElementTy, NewPtr, NumElements, in EmitNewInitializer()
H A DCGRecordLayoutBuilder.cpp1182 llvm::Type *ElementTy = ST->getTypeAtIndex(RL->getLLVMFieldNo(FD)); in ComputeRecordLayout() local
1203 getDataLayout().getTypeAllocSizeInBits(ElementTy) || in ComputeRecordLayout()
1205 getDataLayout().getTypeAllocSizeInBits(ElementTy)) && in ComputeRecordLayout()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.h200 Type *ElementTy = findDeducedElementType(Global); in getDeducedGlobalValueType() local
201 if (!ElementTy) { in getDeducedGlobalValueType()
206 ElementTy = findDeducedCompositeType(GlobalElem); in getDeducedGlobalValueType()
208 return ElementTy ? ElementTy : Global->getValueType(); in getDeducedGlobalValueType()
H A DSPIRVUtils.cpp286 Type *ElementTy = cast<ValueAsMetadata>(N->getOperand(I))->getType(); in getMDOperandAsType() local
287 return toTypedPointer(ElementTy); in getMDOperandAsType()
H A DSPIRVPreLegalizer.cpp244 Type *ElementTy = toTypedPointer(GR->getDeducedGlobalValueType(Global)); in propagateSPIRVType() local
245 auto *Ty = TypedPointerType::get(ElementTy, in propagateSPIRVType()
455 Type *ElementTy = getMDOperandAsType(MI.getOperand(2).getMetadata(), 0); in generateAssignInstrs() local
456 SPIRVType *BaseTy = GR->getOrCreateSPIRVType(ElementTy, MIB); in generateAssignInstrs()
H A DSPIRVCallLowering.cpp246 Type *ElementTy = in getArgSPIRVType() local
248 SPIRVType *ElementType = GR->getOrCreateSPIRVType(ElementTy, MIRBuilder); in getArgSPIRVType()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h705 template <typename ElementTy>
706 static Constant *get(LLVMContext &Context, ArrayRef<ElementTy> Elts) {
708 return getRaw(StringRef(Data, Elts.size() * sizeof(ElementTy)), Elts.size(),
709 Type::getScalarTy<ElementTy>(Context));
726 Type *ElementTy) {
727 Type *Ty = ArrayType::get(ElementTy, NumElements);
798 Type *ElementTy) {
799 Type *Ty = VectorType::get(ElementTy, ElementCount::getFixed(NumElements));
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCallLowering.cpp239 Type *ElementTy = FuncInfo.getParamByValType(ParamIdx); in setArgFlags() local
240 if (!ElementTy) in setArgFlags()
241 ElementTy = FuncInfo.getParamByRefType(ParamIdx); in setArgFlags()
242 if (!ElementTy) in setArgFlags()
243 ElementTy = FuncInfo.getParamInAllocaType(ParamIdx); in setArgFlags()
244 if (!ElementTy) in setArgFlags()
245 ElementTy = FuncInfo.getParamPreallocatedType(ParamIdx); in setArgFlags()
247 assert(ElementTy && "Must have byval, inalloca or preallocated type"); in setArgFlags()
249 uint64_t MemSize = DL.getTypeAllocSize(ElementTy); in setArgFlags()
262 MemAlign = Align(getTLI()->getByValTypeAlignment(ElementTy, DL)); in setArgFlags()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64Arm64ECCallLowering.cpp346 Type *ElementTy = T->getArrayElementType(); in canonicalizeThunkType() local
348 uint64_t ElementSizePerBytes = DL.getTypeSizeInBits(ElementTy) / 8; in canonicalizeThunkType()
350 if (ElementTy->isFloatTy() || ElementTy->isDoubleTy()) { in canonicalizeThunkType()
351 Out << (ElementTy->isFloatTy() ? "F" : "D") << TotalSizeBytes; in canonicalizeThunkType()
H A DAArch64TargetTransformInfo.h299 bool isLegalBroadcastLoad(Type *ElementTy, ElementCount NumElements) const { in isLegalBroadcastLoad() argument
303 switch (unsigned ElementBits = ElementTy->getScalarSizeInBits()) { in isLegalBroadcastLoad()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp2636 Type *ElementTy; member in __anondf5662880d11::AllocaSliceRewriter
2691 ElementTy(VecTy ? VecTy->getElementType() : nullptr), in AllocaSliceRewriter()
2692 ElementSize(VecTy ? DL.getTypeSizeInBits(ElementTy).getFixedValue() / 8 in AllocaSliceRewriter()
2697 assert((DL.getTypeSizeInBits(ElementTy).getFixedValue() % 8) == 0 && in AllocaSliceRewriter()
2981 ? ElementTy in rewriteVectorizedStoreInst()
2982 : FixedVectorType::get(ElementTy, NumElements); in rewriteVectorizedStoreInst()
3211 assert(ElementTy == ScalarTy); in visitMemSetInst()
3221 II.getValue(), DL.getTypeSizeInBits(ElementTy).getFixedValue() / 8); in visitMemSetInst()
3222 Splat = convertValue(DL, IRB, Splat, ElementTy); in visitMemSetInst()
4181 Type *ElementTy; in getTypePartition() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DMicrosoftMangle.cpp3178 QualType ElementTy(T, 0); in mangleArrayType() local
3181 if (ElementTy->isConstantArrayType()) { in mangleArrayType()
3183 getASTContext().getAsConstantArrayType(ElementTy); in mangleArrayType()
3185 ElementTy = CAT->getElementType(); in mangleArrayType()
3186 } else if (ElementTy->isIncompleteArrayType()) { in mangleArrayType()
3188 getASTContext().getAsIncompleteArrayType(ElementTy); in mangleArrayType()
3190 ElementTy = IAT->getElementType(); in mangleArrayType()
3191 } else if (ElementTy->isVariableArrayType()) { in mangleArrayType()
3193 getASTContext().getAsVariableArrayType(ElementTy); in mangleArrayType()
3195 ElementTy = VAT->getElementType(); in mangleArrayType()
[all …]
H A DASTDiagnostic.cpp140 QualType ElementTy = in desugarForDiagnostic() local
144 ElementTy, CAT->getSize(), CAT->getSizeExpr(), in desugarForDiagnostic()
148 ElementTy, VAT->getSizeExpr(), VAT->getSizeModifier(), in desugarForDiagnostic()
152 ElementTy, DSAT->getSizeExpr(), DSAT->getSizeModifier(), in desugarForDiagnostic()
155 QT = Context.getIncompleteArrayType(ElementTy, IAT->getSizeModifier(), in desugarForDiagnostic()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DRegionStore.cpp392 SVal ArrayToPointer(Loc Array, QualType ElementTy) override;
1172 QualType ElementTy = AT->getElementType(); in VisitCluster() local
1173 uint64_t ElemSize = Ctx.getTypeSize(ElementTy); in VisitCluster()
2465 QualType ElementTy = AT->getElementType(); in bindArray() local
2505 const ElementRegion *ER = MRMgr.getElementRegion(ElementTy, Idx, R, Ctx); in bindArray()
2507 if (ElementTy->isStructureOrClassType()) in bindArray()
2509 else if (ElementTy->isArrayType()) in bindArray()
2519 NewB = setImplicitDefaultValue(NewB, R, ElementTy); in bindArray()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DVectorUtils.cpp1141 Type *ElementTy = getLoadStoreType(&I); in collectConstStrideAccesses() local
1145 uint64_t Size = DL.getTypeAllocSize(ElementTy); in collectConstStrideAccesses()
1146 if (Size * 8 != DL.getTypeSizeInBits(ElementTy)) in collectConstStrideAccesses()
1157 getPtrStride(PSE, ElementTy, Ptr, TheLoop, Strides, in collectConstStrideAccesses()
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DStore.h154 virtual SVal ArrayToPointer(Loc Array, QualType ElementTy) = 0;
H A DProgramState.h592 SVal ArrayToPointer(Loc Array, QualType ElementTy) { in ArrayToPointer() argument
593 return StoreMgr->ArrayToPointer(Array, ElementTy); in ArrayToPointer()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.cpp1267 Type *ElementTy = Ty->getElementType(); in getArithmeticReductionCost() local
1268 if (ElementTy->isIntegerTy(1)) { in getArithmeticReductionCost()
1278 getCmpSelInstrCost(Instruction::ICmp, ElementTy, ElementTy, in getArithmeticReductionCost()
1288 getCmpSelInstrCost(Instruction::ICmp, ElementTy, ElementTy, in getArithmeticReductionCost()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.h267 bool isLegalBroadcastLoad(Type *ElementTy, ElementCount NumElements) const;
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DAArch64.cpp662 llvm::Type *MemTy = CGF.ConvertTypeForMem(Ty), *ElementTy = MemTy; in EmitAAPCSVAArg() local
773 Address(CGF.Builder.CreateLoad(ResAddr, "vaarg.addr"), ElementTy, in EmitAAPCSVAArg()

123