| /freebsd/contrib/llvm-project/llvm/tools/bugpoint/ |
| H A D | ListReducer.h | 28 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 D | SemaWasm.cpp | 30 QualType &ElTy) { in CheckWasmBuiltinArgIsTable() argument 38 ElTy = ATy->getElementType(); in CheckWasmBuiltinArgIsTable() 101 QualType ElTy; in BuiltinWasmTableGet() local 102 if (CheckWasmBuiltinArgIsTable(SemaRef, TheCall, 0, ElTy)) in BuiltinWasmTableGet() 112 TheCall->setType(ElTy); in BuiltinWasmTableGet() 124 QualType ElTy; in BuiltinWasmTableSet() local 125 if (CheckWasmBuiltinArgIsTable(SemaRef, TheCall, 0, ElTy)) in BuiltinWasmTableSet() 131 if (!getASTContext().hasSameType(ElTy, TheCall->getArg(2)->getType())) in BuiltinWasmTableSet() 142 QualType ElTy; in BuiltinWasmTableSize() local 143 if (CheckWasmBuiltinArgIsTable(SemaRef, TheCall, 0, ElTy)) in BuiltinWasmTableSize() [all …]
|
| H A D | SemaHLSL.cpp | 949 QualType ElTy = Ctx.getCorrespondingUnsignedType(LHSSigned ? LElTy : RElTy); in handleIntegerVectorBinOpConversion() local 951 ElTy, RHSType->castAs<VectorType>()->getNumElements()); in handleIntegerVectorBinOpConversion() 3216 QualType ElTy = VT->getElementType(); in IsTypedResourceElementCompatible() local 3217 if (ElTy->isBooleanType()) in IsTypedResourceElementCompatible() 3904 QualType ElTy; in generateInitListsImpl() local 3907 ElTy = ATy->getElementType(); in generateInitListsImpl() 3911 ElTy = VTy->getElementType(); in generateInitListsImpl() 3915 Inits.push_back(generateInitListsImpl(ElTy)); in generateInitListsImpl()
|
| H A D | SemaExprCXX.cpp | 4651 QualType ToType, QualType *ElTy = nullptr) { in adjustVectorType() argument 4656 if (ElTy) in adjustVectorType() 4657 *ElTy = ElType; in adjustVectorType() 4819 QualType ElTy = ToType; in PerformImplicitConversion() local 4822 StepTy = adjustVectorType(Context, FromType, ToType, &ElTy); in PerformImplicitConversion() 4823 if (ElTy->isBooleanType()) { in PerformImplicitConversion() 4871 QualType ElTy = ToType; in PerformImplicitConversion() local 4874 StepTy = adjustVectorType(Context, FromType, ToType, &ElTy); in PerformImplicitConversion() 4875 if (ElTy->isRealFloatingType()) in PerformImplicitConversion() 5024 QualType ElTy = FromType; in PerformImplicitConversion() local [all …]
|
| H A D | SemaChecking.cpp | 3081 QualType ElTy; in CheckBuiltinFunctionCall() local 3083 ElTy = TyA->getElementType(); in CheckBuiltinFunctionCall() 3085 ElTy = Arg->getType()->getSizelessVectorEltType(Context); in CheckBuiltinFunctionCall() 3087 if (ElTy.isNull()) { in CheckBuiltinFunctionCall() 3094 TheCall->setType(ElTy); in CheckBuiltinFunctionCall() 3105 QualType ElTy; in CheckBuiltinFunctionCall() local 3107 ElTy = TyA->getElementType(); in CheckBuiltinFunctionCall() 3109 ElTy = Arg->getType()->getSizelessVectorEltType(Context); in CheckBuiltinFunctionCall() 3111 if (ElTy.isNull() || !ElTy->isFloatingType()) { in CheckBuiltinFunctionCall() 3118 TheCall->setType(ElTy); in CheckBuiltinFunctionCall() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGBuilder.h | 225 llvm::StructType *ElTy = cast<llvm::StructType>(Addr.getElementType()); variable 227 const llvm::StructLayout *Layout = DL.getStructLayout(ElTy); 232 ElTy->getElementType(Index), 247 llvm::ArrayType *ElTy = cast<llvm::ArrayType>(Addr.getElementType()); variable 250 CharUnits::fromQuantity(DL.getTypeAllocSize(ElTy->getElementType())); 255 ElTy->getElementType(), 267 llvm::Type *ElTy = Addr.getElementType(); 269 CharUnits EltSize = CharUnits::fromQuantity(DL.getTypeAllocSize(ElTy)); 272 CreateInBoundsGEP(ElTy, Addr.getBasePointer(), getSize(Index), Name), 273 ElTy, Addr.getAlignment().alignmentAtOffset(Index * EltSize), [all …]
|
| H A D | CGAtomic.cpp | 150 llvm::Type *ElTy; in getAtomicAddress() local 152 ElTy = LVal.getAddress().getElementType(); in getAtomicAddress() 154 ElTy = LVal.getBitFieldAddress().getElementType(); in getAtomicAddress() 156 ElTy = LVal.getVectorAddress().getElementType(); in getAtomicAddress() 158 ElTy = LVal.getExtVectorAddress().getElementType(); in getAtomicAddress() 159 return Address(getAtomicPointer(), ElTy, getAtomicAlignment()); in getAtomicAddress()
|
| H A D | CGDecl.cpp | 1290 llvm::Type *ElTy = Loc.getElementType(); in emitStoresForZeroInit() local 1292 constWithPadding(CGM, IsPattern::No, llvm::Constant::getNullValue(ElTy)); in emitStoresForZeroInit() 1299 llvm::Type *ElTy = Loc.getElementType(); in emitStoresForPatternInit() local 1301 CGM, IsPattern::Yes, initializationPatternFor(CGM, ElTy)); in emitStoresForPatternInit() 1890 llvm::Type *ElTy = Loc.getElementType(); in emitZeroOrPatternForAutoVarInit() local 1892 CGM, IsPattern::Yes, initializationPatternFor(CGM, ElTy)); in emitZeroOrPatternForAutoVarInit()
|
| H A D | CGExpr.cpp | 1495 llvm::Type *ElTy = ConvertType(E->getType()); in EmitUnsupportedLValue() local 1498 Address(llvm::UndefValue::get(Ty), ElTy, CharUnits::One()), E->getType()); in EmitUnsupportedLValue() 4688 QualType BaseTy, QualType ElTy, in emitOMPArraySectionBase() argument 4710 return Addr.withElementType(CGF.ConvertTypeForMem(ElTy)); in emitOMPArraySectionBase() 4715 CGF.CGM.getNaturalTypeAlignment(ElTy, &TypeBaseInfo, &TypeTBAAInfo); in emitOMPArraySectionBase() 4719 CGF.ConvertTypeForMem(ElTy), Align); in emitOMPArraySectionBase() 5751 llvm::Type *ElTy = ConvertTypeForMem(TempLV.getType()); in EmitHLSLOutArgExpr() local 5753 llvm::TypeSize Sz = CGM.getDataLayout().getTypeAllocSize(ElTy); in EmitHLSLOutArgExpr() 5757 Address TmpAddr(Addr, ElTy, TempLV.getAlignment()); in EmitHLSLOutArgExpr()
|
| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | VectorTypeUtils.cpp | 25 map_to_vector(StructTy->elements(), [&](Type *ElTy) -> Type * { in toVectorizedStructTy() argument 26 return VectorType::get(ElTy, EC); in toVectorizedStructTy() 37 map_to_vector(StructTy->elements(), [](Type *ElTy) -> Type * { in toScalarizedStructTy() argument 38 return ElTy->getScalarType(); in toScalarizedStructTy()
|
| H A D | Verifier.cpp | 4232 Type *ElTy = in visitGetElementPtrInst() local 4234 Check(ElTy, "Invalid indices for GEP pointer type!", &GEP); in visitGetElementPtrInst() 4238 Check(PtrTy && GEP.getResultElementType() == ElTy, in visitGetElementPtrInst() 4239 "GEP is not of right type for indices!", &GEP, ElTy); in visitGetElementPtrInst() 4359 Type *ElTy = LI.getType(); in visitLoadInst() local 4364 Check(ElTy->isSized(), "loading unsized types is not allowed", &LI); in visitLoadInst() 4369 Check(ElTy->isIntOrPtrTy() || ElTy->isFloatingPointTy(), in visitLoadInst() 4372 ElTy, &LI); in visitLoadInst() 4373 checkAtomicMemAccessSize(ElTy, &LI); in visitLoadInst() 4385 Type *ElTy = SI.getOperand(0)->getType(); in visitStoreInst() local [all …]
|
| H A D | IRBuilder.cpp | 1148 Type *ElTy, Value *Base, unsigned Dimension, unsigned LastIndex, in CreatePreserveArrayAccessIndex() argument 1166 0, Attribute::get(Fn->getContext(), Attribute::ElementType, ElTy)); in CreatePreserveArrayAccessIndex() 1189 Type *ElTy, Value *Base, unsigned Index, unsigned FieldIndex, in CreatePreserveStructAccessIndex() argument 1205 0, Attribute::get(Fn->getContext(), Attribute::ElementType, ElTy)); in CreatePreserveStructAccessIndex()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/Utils/ |
| H A D | WebAssemblyTypeUtilities.cpp | 80 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/lib/Target/AMDGPU/ |
| H A D | AMDGPUGlobalISelUtils.cpp | 109 LLT ElTy = Ty.getElementType(); in getReadAnyLaneSplitTy() local 110 if (ElTy.getSizeInBits() == 16) in getReadAnyLaneSplitTy() 111 return LLT::fixed_vector(2, ElTy); in getReadAnyLaneSplitTy() 113 return ElTy; in getReadAnyLaneSplitTy()
|
| H A D | AMDGPUHSAMetadataStreamer.cpp | 190 auto *ElTy = VecTy->getElementType(); in getTypeName() local 192 return (Twine(getTypeName(ElTy, Signed)) + Twine(NumElements)).str(); in getTypeName()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | IntrinsicsHexagon.td | 159 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 D | DerivedTypes.h | 594 FixedVectorType(Type *ElTy, unsigned NumElts) in FixedVectorType() argument 595 : VectorType(ElTy, NumElts, FixedVectorTyID) {} in FixedVectorType() 641 ScalableVectorType(Type *ElTy, unsigned MinNumElts) in ScalableVectorType() argument 642 : VectorType(ElTy, MinNumElts, ScalableVectorTyID) {} in ScalableVectorType()
|
| /freebsd/contrib/llvm-project/llvm/utils/TableGen/Basic/ |
| H A D | VTEmitter.cpp | 186 const auto *ElTy = VT->getValueAsDef("ElementType"); in run() local 187 assert(ElTy); in run() 194 << ElTy->getName() << ")\n"; in run()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILPrepare.cpp | 168 Type *ElTy = ArrTy->getElementType(); in maybeGenerateBitcast() local 169 if (ElTy == Ty) in maybeGenerateBitcast() 188 Type *ElTy = ArrTy->getElementType(); in maybeGenerateBitcast() local 189 if (ElTy == Ty) in maybeGenerateBitcast()
|
| H A D | DXILOpLowering.cpp | 416 Type *ElTy = VecTy->getElementType(); in replaceResRetUses() local 417 Type *ArrayTy = ArrayType::get(ElTy, N); in replaceResRetUses() 431 Value *Load = IRB.CreateLoad(ElTy, GEP); in replaceResRetUses()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/ |
| H A D | MachineValueType.h | 454 #define GET_VT_VECATTR(Ty, Sc, Tup, nElem, ElTy) \ in getVectorVT() argument 455 if (!Sc && !Tup && VT.SimpleTy == ElTy && NumElements == nElem) \ in getVectorVT() 464 #define GET_VT_VECATTR(Ty, Sc, Tup, nElem, ElTy) \ in getScalableVectorVT() argument 465 if (Sc && VT.SimpleTy == ElTy && NumElements == nElem) \ in getScalableVectorVT()
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | DXILResource.cpp | 468 Type *ElTy = cast<CBufferExtType>(HandleTy)->getResourceType(); in getCBufferSize() local 470 if (auto *LayoutTy = dyn_cast<LayoutExtType>(ElTy)) in getCBufferSize() 474 return DL.getTypeAllocSize(ElTy); in getCBufferSize() 486 Type *ElTy = cast<RawBufferExtType>(HandleTy)->getResourceType(); in getStruct() local 488 uint32_t Stride = DL.getTypeAllocSize(ElTy); in getStruct() 490 if (auto *STy = dyn_cast<StructType>(ElTy)) in getStruct() 536 auto [ElTy, IsSigned] = getTypedElementType(Kind, HandleTy); in getTyped() 537 dxil::ElementType ET = toDXILElementType(ElTy, IsSigned); in getTyped() 539 if (auto *VTy = dyn_cast<FixedVectorType>(ElTy)) in getTyped()
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngine.cpp | 104 Type *ElTy = GV->getValueType(); in Create() local 105 size_t GVSize = (size_t)TD.getTypeAllocSize(ElTy); in Create() 1324 Type *ElTy = GV->getValueType(); in emitGlobalVariable() local 1325 size_t GVSize = (size_t)getDataLayout().getTypeAllocSize(ElTy); in emitGlobalVariable()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetTransformInfo.cpp | 865 Type *ElTy = OpTy->getScalarType(); in getCmpOpsType() local 866 return FixedVectorType::get(ElTy, VF); in getCmpOpsType()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVEmitIntrinsics.cpp | 2404 Type *ElTy = SI->getValueOperand()->getType(); in runOnFunction() local 2405 if (ElTy->isAggregateType() || ElTy->isVectorTy()) in runOnFunction()
|