Home
last modified time | relevance | path

Searched refs:ElTy (Results 1 – 25 of 36) 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/Sema/
H A DSemaWasm.cpp30 QualType &ElTy) { in CheckWasmBuiltinArgIsTable() argument
38 ElTy = ATy->getElementType(); in CheckWasmBuiltinArgIsTable()
90 QualType ElTy; in BuiltinWasmTableGet() local
91 if (CheckWasmBuiltinArgIsTable(SemaRef, TheCall, 0, ElTy)) in BuiltinWasmTableGet()
101 TheCall->setType(ElTy); in BuiltinWasmTableGet()
113 QualType ElTy; in BuiltinWasmTableSet() local
114 if (CheckWasmBuiltinArgIsTable(SemaRef, TheCall, 0, ElTy)) in BuiltinWasmTableSet()
120 if (!getASTContext().hasSameType(ElTy, TheCall->getArg(2)->getType())) in BuiltinWasmTableSet()
131 QualType ElTy; in BuiltinWasmTableSize() local
132 if (CheckWasmBuiltinArgIsTable(SemaRef, TheCall, 0, ElTy)) in BuiltinWasmTableSize()
[all …]
H A DSemaExprCXX.cpp4300 QualType ToType, QualType *ElTy = nullptr) { in adjustVectorType() argument
4303 if (ElTy) in adjustVectorType()
4304 *ElTy = ElType; in adjustVectorType()
4461 QualType ElTy = ToType; in PerformImplicitConversion() local
4464 StepTy = adjustVectorType(Context, FromType, ToType, &ElTy); in PerformImplicitConversion()
4465 if (ElTy->isBooleanType()) { in PerformImplicitConversion()
4513 QualType ElTy = ToType; in PerformImplicitConversion() local
4516 StepTy = adjustVectorType(Context, FromType, ToType, &ElTy); in PerformImplicitConversion()
4517 if (ElTy->isRealFloatingType()) in PerformImplicitConversion()
4654 QualType ElTy = FromType; in PerformImplicitConversion() local
[all …]
H A DSemaTemplateDeduction.cpp4273 QualType ElTy; in DeduceFromInitializerList() local
4276 ElTy = ArrTy->getElementType(); in DeduceFromInitializerList()
4277 else if (!S.isStdInitializerList(AdjustedParamType, &ElTy)) { in DeduceFromInitializerList()
4290 if (ElTy->isDependentType()) { in DeduceFromInitializerList()
4293 S, TemplateParams, 0, ElTy, E->getType(), in DeduceFromInitializerList()
H A DSemaChecking.cpp2800 QualType ElTy; in CheckBuiltinFunctionCall() local
2802 ElTy = TyA->getElementType(); in CheckBuiltinFunctionCall()
2804 ElTy = Arg->getType()->getSizelessVectorEltType(Context); in CheckBuiltinFunctionCall()
2806 if (ElTy.isNull()) { in CheckBuiltinFunctionCall()
2812 TheCall->setType(ElTy); in CheckBuiltinFunctionCall()
2829 QualType ElTy; in CheckBuiltinFunctionCall() local
2831 ElTy = TyA->getElementType(); in CheckBuiltinFunctionCall()
2833 ElTy = Arg->getType()->getSizelessVectorEltType(Context); in CheckBuiltinFunctionCall()
2835 if (ElTy.isNull() || !ElTy->isIntegerType()) { in CheckBuiltinFunctionCall()
2841 TheCall->setType(ElTy); in CheckBuiltinFunctionCall()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGBuilder.h220 llvm::StructType *ElTy = cast<llvm::StructType>(Addr.getElementType()); variable
222 const llvm::StructLayout *Layout = DL.getStructLayout(ElTy);
227 ElTy->getElementType(Index),
242 llvm::ArrayType *ElTy = cast<llvm::ArrayType>(Addr.getElementType()); variable
245 CharUnits::fromQuantity(DL.getTypeAllocSize(ElTy->getElementType()));
250 ElTy->getElementType(),
262 llvm::Type *ElTy = Addr.getElementType();
264 CharUnits EltSize = CharUnits::fromQuantity(DL.getTypeAllocSize(ElTy));
267 CreateInBoundsGEP(ElTy, Addr.getBasePointer(), getSize(Index), Name),
268 ElTy, Addr.getAlignment().alignmentAtOffset(Index * EltSize),
[all …]
H A DCGHLSLRuntime.cpp241 QualType ElTy = Args[0].getAsType(); in calculateElementType() local
244 if (const auto *VecTy = ElTy->getAs<clang::VectorType>()) in calculateElementType()
245 ElTy = VecTy->getElementType(); in calculateElementType()
247 if (ElTy->isSignedIntegerType()) { in calculateElementType()
248 switch (Context.getTypeSize(ElTy)) { in calculateElementType()
256 } else if (ElTy->isUnsignedIntegerType()) { in calculateElementType()
257 switch (Context.getTypeSize(ElTy)) { in calculateElementType()
265 } else if (ElTy->isSpecificBuiltinType(BuiltinType::Half)) in calculateElementType()
267 else if (ElTy->isSpecificBuiltinType(BuiltinType::Float)) in calculateElementType()
269 else if (ElTy->isSpecificBuiltinType(BuiltinType::Double)) in calculateElementType()
H A DCGAtomic.cpp151 llvm::Type *ElTy; in getAtomicAddress() local
153 ElTy = LVal.getAddress().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.cpp1294 llvm::Type *ElTy = Loc.getElementType(); in emitStoresForZeroInit() local
1296 constWithPadding(CGM, IsPattern::No, llvm::Constant::getNullValue(ElTy)); in emitStoresForZeroInit()
1304 llvm::Type *ElTy = Loc.getElementType(); in emitStoresForPatternInit() local
1306 CGM, IsPattern::Yes, initializationPatternFor(CGM, ElTy)); in emitStoresForPatternInit()
1841 llvm::Type *ElTy = Loc.getElementType(); in emitZeroOrPatternForAutoVarInit() local
1843 CGM, IsPattern::Yes, initializationPatternFor(CGM, ElTy)); in emitZeroOrPatternForAutoVarInit()
H A DCGExpr.cpp1439 llvm::Type *ElTy = ConvertType(E->getType()); in EmitUnsupportedLValue() local
1442 Address(llvm::UndefValue::get(Ty), ElTy, CharUnits::One()), E->getType()); in EmitUnsupportedLValue()
4378 QualType BaseTy, QualType ElTy, in emitOMPArraySectionBase() argument
4400 return Addr.withElementType(CGF.ConvertTypeForMem(ElTy)); in emitOMPArraySectionBase()
4405 CGF.CGM.getNaturalTypeAlignment(ElTy, &TypeBaseInfo, &TypeTBAAInfo); in emitOMPArraySectionBase()
4409 CGF.ConvertTypeForMem(ElTy), Align); in emitOMPArraySectionBase()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/Utils/
H A DWebAssemblyTypeUtilities.cpp80 const Type *ElTy = GlobalVT->getArrayElementType(); in wasmSymbolSetType() local
81 if (WebAssembly::isWebAssemblyExternrefType(ElTy)) in wasmSymbolSetType()
83 else if (WebAssembly::isWebAssemblyFuncrefType(ElTy)) in wasmSymbolSetType()
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DVTEmitter.cpp169 const auto *ElTy = VT->getValueAsDef("ElementType"); in run() local
170 assert(ElTy); in run()
176 << ElTy->getName() << ")\n"; in run()
/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()
/freebsd/contrib/llvm-project/llvm/lib/Frontend/HLSL/
H A DHLSLResource.cpp59 ElementType ElTy, bool IsROV, in FrontendResource() argument
66 ConstantAsMetadata::get(B.getInt32(static_cast<int>(ElTy))), in FrontendResource()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILResource.cpp65 StringRef ResourceBase::getElementTypeName(ElementType ElTy) { in getElementTypeName() argument
66 switch (ElTy) { in getElementTypeName()
109 void ResourceBase::printElementType(ResourceKind Kind, ElementType ElTy, in printElementType() argument
114 OS << right_justify(getElementTypeName(ElTy), Alignment); in printElementType()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/
H A DMachineValueType.h441 #define GET_VT_VECATTR(Ty, Sc, nElem, ElTy) \ in getVectorVT() argument
442 if (!Sc && VT.SimpleTy == ElTy && NumElements == nElem) \ in getVectorVT()
451 #define GET_VT_VECATTR(Ty, Sc, nElem, ElTy) \ in getScalableVectorVT() argument
452 if (Sc && VT.SimpleTy == ElTy && NumElements == nElem) \ in getScalableVectorVT()
/freebsd/contrib/llvm-project/llvm/include/llvm/Frontend/HLSL/
H A DHLSLResource.h34 FrontendResource(GlobalVariable *GV, ResourceKind RK, ElementType ElTy,
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DVerifier.cpp4089 Type *ElTy = in visitGetElementPtrInst() local
4091 Check(ElTy, "Invalid indices for GEP pointer type!", &GEP); in visitGetElementPtrInst()
4094 GEP.getResultElementType() == ElTy, in visitGetElementPtrInst()
4095 "GEP is not of right type for indices!", &GEP, ElTy); in visitGetElementPtrInst()
4199 Type *ElTy = LI.getType(); in visitLoadInst() local
4204 Check(ElTy->isSized(), "loading unsized types is not allowed", &LI); in visitLoadInst()
4209 Check(ElTy->isIntOrPtrTy() || ElTy->isFloatingPointTy(), in visitLoadInst()
4212 ElTy, &LI); in visitLoadInst()
4213 checkAtomicMemAccessSize(ElTy, &LI); in visitLoadInst()
4225 Type *ElTy = SI.getOperand(0)->getType(); in visitStoreInst() local
[all …]
H A DIRBuilder.cpp1214 Type *ElTy, Value *Base, unsigned Dimension, unsigned LastIndex, in CreatePreserveArrayAccessIndex() argument
1235 0, Attribute::get(Fn->getContext(), Attribute::ElementType, ElTy)); in CreatePreserveArrayAccessIndex()
1262 Type *ElTy, Value *Base, unsigned Index, unsigned FieldIndex, in CreatePreserveStructAccessIndex() argument
1281 0, Attribute::get(Fn->getContext(), Attribute::ElementType, ElTy)); in CreatePreserveStructAccessIndex()
/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()
1328 Type *ElTy = GV->getValueType(); in emitGlobalVariable() local
1329 size_t GVSize = (size_t)getDataLayout().getTypeAllocSize(ElTy); in emitGlobalVariable()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.cpp167 auto ElTy = VecTy->getElementType(); in getTypeName() local
169 return (Twine(getTypeName(ElTy, Signed)) + Twine(NumElements)).str(); in getTypeName()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp742 Type *ElTy = OpTy->getScalarType(); in getCmpOpsType() local
743 return FixedVectorType::get(ElTy, VF); in getCmpOpsType()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp1657 Type *ElTy = SI->getValueOperand()->getType(); in runOnFunction() local
1658 if (ElTy->isAggregateType() || ElTy->isVectorTy()) in runOnFunction()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp916 Type *ElTy = Cond->getType(); in visitSwitchInst() local
923 if (executeICMP_EQ(CondVal, CaseVal, ElTy).IntVal != 0) { in visitSwitchInst()

12