Home
last modified time | relevance | path

Searched refs:ElTy (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/tools/bugpoint/
H A DListReducer.h28 template <typename ElTy> struct ListReducer {
41 virtual Expected<TestResult> doTest(std::vector<ElTy> &Prefix,
42 std::vector<ElTy> &Kept) = 0;
47 Expected<bool> reduceList(std::vector<ElTy> &TheList) { in reduceList()
48 std::vector<ElTy> empty; in reduceList()
94 std::vector<ElTy> ShuffledList(TheList); in reduceList()
120 std::vector<ElTy> Prefix(TheList.begin(), TheList.begin() + Mid); in reduceList()
121 std::vector<ElTy> Suffix(TheList.begin() + Mid, TheList.end()); in reduceList()
163 std::vector<ElTy> EmptyList; in reduceList()
183 std::vector<ElTy> TestList(TheList); in reduceList()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuilder.h174 llvm::StructType *ElTy = cast<llvm::StructType>(Addr.getElementType()); variable
176 const llvm::StructLayout *Layout = DL.getStructLayout(ElTy);
181 ElTy->getElementType(Index),
195 llvm::ArrayType *ElTy = cast<llvm::ArrayType>(Addr.getElementType()); variable
203 ElTy->getElementType(),
215 llvm::Type *ElTy = Addr.getElementType();
217 CharUnits EltSize = CharUnits::fromQuantity(DL.getTypeAllocSize(ElTy));
344 llvm::StructType *ElTy = cast<llvm::StructType>(Addr.getElementType()); in CreatePreserveStructAccessIndex() local
346 const llvm::StructLayout *Layout = DL.getStructLayout(ElTy); in CreatePreserveStructAccessIndex()
349 return Address(CreatePreserveStructAccessIndex(ElTy, Addr.getPointer(), in CreatePreserveStructAccessIndex()
[all …]
H A DCGHLSLRuntime.cpp238 QualType ElTy = Args[0].getAsType(); in calculateElementType() local
241 if (const auto *VecTy = ElTy->getAs<clang::VectorType>()) in calculateElementType()
242 ElTy = VecTy->getElementType(); in calculateElementType()
244 if (ElTy->isSignedIntegerType()) { in calculateElementType()
245 switch (Context.getTypeSize(ElTy)) { in calculateElementType()
253 } else if (ElTy->isUnsignedIntegerType()) { in calculateElementType()
254 switch (Context.getTypeSize(ElTy)) { in calculateElementType()
262 } else if (ElTy->isSpecificBuiltinType(BuiltinType::Half)) in calculateElementType()
264 else if (ElTy->isSpecificBuiltinType(BuiltinType::Float)) in calculateElementType()
266 else if (ElTy->isSpecificBuiltinType(BuiltinType::Double)) in calculateElementType()
H A DCGAtomic.cpp151 llvm::Type *ElTy; in getAtomicAddress() local
153 ElTy = LVal.getAddress(CGF).getElementType(); in getAtomicAddress()
155 ElTy = LVal.getBitFieldAddress().getElementType(); in getAtomicAddress()
157 ElTy = LVal.getVectorAddress().getElementType(); in getAtomicAddress()
159 ElTy = LVal.getExtVectorAddress().getElementType(); in getAtomicAddress()
160 return Address(getAtomicPointer(), ElTy, getAtomicAlignment()); in getAtomicAddress()
H A DCGDecl.cpp1292 llvm::Type *ElTy = Loc.getElementType(); in emitStoresForZeroInit() local
1294 constWithPadding(CGM, IsPattern::No, llvm::Constant::getNullValue(ElTy)); in emitStoresForZeroInit()
1302 llvm::Type *ElTy = Loc.getElementType(); in emitStoresForPatternInit() local
1304 CGM, IsPattern::Yes, initializationPatternFor(CGM, ElTy)); in emitStoresForPatternInit()
1836 llvm::Type *ElTy = Loc.getElementType(); in emitZeroOrPatternForAutoVarInit() local
1838 CGM, IsPattern::Yes, initializationPatternFor(CGM, ElTy)); in emitZeroOrPatternForAutoVarInit()
H A DCGExpr.cpp1446 llvm::Type *ElTy = ConvertType(E->getType()); in EmitUnsupportedLValue() local
1449 Address(llvm::UndefValue::get(Ty), ElTy, CharUnits::One()), E->getType()); in EmitUnsupportedLValue()
4336 QualType BaseTy, QualType ElTy, in emitOMPArraySectionBase() argument
4358 return Addr.withElementType(CGF.ConvertTypeForMem(ElTy)); in emitOMPArraySectionBase()
4363 CGF.CGM.getNaturalTypeAlignment(ElTy, &TypeBaseInfo, &TypeTBAAInfo); in emitOMPArraySectionBase()
4367 CGF.ConvertTypeForMem(ElTy), Align); in emitOMPArraySectionBase()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DVTEmitter.cpp116 const auto *ElTy = VT->getValueAsDef("ElementType"); in run() local
117 assert(ElTy); in run()
123 << ElTy->getName() << ", " in run()
124 << ElTy->getValueAsInt("Size") << ")\n"; in run()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineValueType.h264 #define GET_VT_VECATTR(Ty, Sc, nElem, ElTy, ElSz) \ in getVectorElementType() argument
266 return ElTy; in getVectorElementType()
278 #define GET_VT_VECATTR(Ty, Sc, nElem, ElTy, ElSz) \ in getVectorMinNumElements() argument
448 #define GET_VT_VECATTR(Ty, Sc, nElem, ElTy, ElSz) \ in getVectorVT() argument
449 if (!Sc && VT.SimpleTy == ElTy && NumElements == nElem) \ in getVectorVT()
458 #define GET_VT_VECATTR(Ty, Sc, nElem, ElTy, ElSz) \ in getScalableVectorVT() argument
459 if (Sc && VT.SimpleTy == ElTy && NumElements == nElem) \ in getScalableVectorVT()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/Utils/
H A DWebAssemblyTypeUtilities.cpp76 const Type *ElTy = GlobalVT->getArrayElementType(); in wasmSymbolSetType() local
77 if (WebAssembly::isWebAssemblyExternrefType(ElTy)) in wasmSymbolSetType()
79 else if (WebAssembly::isWebAssemblyFuncrefType(ElTy)) in wasmSymbolSetType()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DIntrinsicsHexagon.td159 multiclass Hexagon_custom_circ_ld_Intrinsic<LLVMType ElTy> {
161 [ElTy, llvm_ptr_ty],
165 [ElTy, llvm_ptr_ty], [llvm_ptr_ty, llvm_i32_ty, llvm_ptr_ty],
176 multiclass Hexagon_custom_circ_st_Intrinsic<LLVMType ElTy> {
179 [llvm_ptr_ty, llvm_i32_ty, llvm_i32_ty, ElTy, llvm_ptr_ty],
182 [llvm_ptr_ty], [llvm_ptr_ty, llvm_i32_ty, ElTy, llvm_ptr_ty],
195 class Hexagon_custom_brev_ld_Intrinsic<LLVMType ElTy>
197 [ElTy, llvm_ptr_ty], [llvm_ptr_ty, llvm_i32_ty],
H A DDerivedTypes.h541 FixedVectorType(Type *ElTy, unsigned NumElts) in FixedVectorType() argument
542 : VectorType(ElTy, NumElts, FixedVectorTyID) {} in FixedVectorType()
588 ScalableVectorType(Type *ElTy, unsigned MinNumElts) in ScalableVectorType() argument
589 : VectorType(ElTy, MinNumElts, ScalableVectorTyID) {} in ScalableVectorType()
H A DIRBuilder.h2587 Value *CreatePreserveArrayAccessIndex(Type *ElTy, Value *Base,
2594 Value *CreatePreserveStructAccessIndex(Type *ElTy, Value *Base,
/freebsd/contrib/llvm-project/llvm/lib/Frontend/HLSL/
H A DHLSLResource.cpp55 ElementType ElTy, bool IsROV, in FrontendResource() argument
62 ConstantAsMetadata::get(B.getInt32(static_cast<int>(ElTy))), in FrontendResource()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILResource.cpp66 StringRef ResourceBase::getElementTypeName(ElementType ElTy) { in getElementTypeName() argument
67 switch (ElTy) { in getElementTypeName()
110 void ResourceBase::printElementType(Kinds Kind, ElementType ElTy, in printElementType() argument
115 OS << right_justify(getElementTypeName(ElTy), Alignment); in printElementType()
/freebsd/contrib/llvm-project/llvm/include/llvm/Frontend/HLSL/
H A DHLSLResource.h89 FrontendResource(GlobalVariable *GV, ResourceKind RK, ElementType ElTy,
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp3955 Type *ElTy = in visitGetElementPtrInst() local
4065 Type *ElTy = LI.getType(); in visitLoadInst() local
4075 Check(ElTy->isIntOrPtrTy() || ElTy->isFloatingPointTy(), in visitLoadInst()
4078 ElTy, &LI); in visitLoadInst()
4101 Check(ElTy->isIntOrPtrTy() || ElTy->isFloatingPointTy(), in visitStoreInst()
4104 ElTy, &SI); in visitStoreInst()
4170 Check(ElTy->isIntOrPtrTy(), in visitAtomicCmpXchgInst()
4182 Check(ElTy->isIntegerTy() || ElTy->isFloatingPointTy() || in visitAtomicRMWInst()
4186 &RMWI, ElTy); in visitAtomicRMWInst()
4191 &RMWI, ElTy); in visitAtomicRMWInst()
[all …]
H A DIRBuilder.cpp1233 Type *ElTy, Value *Base, unsigned Dimension, unsigned LastIndex, in CreatePreserveArrayAccessIndex() argument
1254 0, Attribute::get(Fn->getContext(), Attribute::ElementType, ElTy)); in CreatePreserveArrayAccessIndex()
1281 Type *ElTy, Value *Base, unsigned Index, unsigned FieldIndex, in CreatePreserveStructAccessIndex() argument
1300 0, Attribute::get(Fn->getContext(), Attribute::ElementType, ElTy)); in CreatePreserveStructAccessIndex()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp627 Type *ElTy = SI->getValueOperand()->getType(); in runOnFunction() local
628 if (ElTy->isAggregateType() || ElTy->isVectorTy()) in runOnFunction()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp105 Type *ElTy = GV->getValueType(); in Create() local
106 size_t GVSize = (size_t)TD.getTypeAllocSize(ElTy); in Create()
1330 Type *ElTy = GV->getValueType(); in emitGlobalVariable() local
1331 size_t GVSize = (size_t)getDataLayout().getTypeAllocSize(ElTy); in emitGlobalVariable()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.cpp166 auto ElTy = VecTy->getElementType(); in getTypeName() local
168 return (Twine(getTypeName(ElTy, Signed)) + Twine(NumElements)).str(); in getTypeName()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp740 Type *ElTy = OpTy->getScalarType(); in getCmpOpsType() local
741 return FixedVectorType::get(ElTy, VF); in getCmpOpsType()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp19974 QualType &ElTy) { in CheckWasmBuiltinArgIsTable() argument
19982 ElTy = ATy->getElementType(); in CheckWasmBuiltinArgIsTable()
20004 QualType ElTy; in BuiltinWasmTableGet() local
20005 if (CheckWasmBuiltinArgIsTable(*this, TheCall, 0, ElTy)) in BuiltinWasmTableGet()
20015 TheCall->setType(ElTy); in BuiltinWasmTableGet()
20027 QualType ElTy; in BuiltinWasmTableSet() local
20028 if (CheckWasmBuiltinArgIsTable(*this, TheCall, 0, ElTy)) in BuiltinWasmTableSet()
20045 QualType ElTy; in BuiltinWasmTableSize() local
20046 if (CheckWasmBuiltinArgIsTable(*this, TheCall, 0, ElTy)) in BuiltinWasmTableSize()
20059 QualType ElTy; in BuiltinWasmTableGrow() local
[all …]
H A DSemaTemplateDeduction.cpp4096 QualType ElTy; in DeduceFromInitializerList() local
4099 ElTy = ArrTy->getElementType(); in DeduceFromInitializerList()
4100 else if (!S.isStdInitializerList(AdjustedParamType, &ElTy)) { in DeduceFromInitializerList()
4113 if (ElTy->isDependentType()) { in DeduceFromInitializerList()
4116 S, TemplateParams, 0, ElTy, E->getType(), in DeduceFromInitializerList()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp952 Type *ElTy = Cond->getType(); in visitSwitchInst() local
959 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp3283 Type *ElTy = getTypeByID(ElTyID); in parseConstants() local
3284 if (!ElTy) in parseConstants()
4639 Type *ElTy = getPtrElementTypeByID(ArgTyIDs[ArgNo]); in propagateAttributeTypes() local
4640 if (!ElTy) in propagateAttributeTypes()
4642 Attribute NewAttr = Attribute::get(Context, Attribute::ElementType, ElTy); in propagateAttributeTypes()

12