| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILOpBuilder.cpp | 195 static StructType *getResRetType(Type *ElementTy) { in getResRetType() argument 196 LLVMContext &Ctx = ElementTy->getContext(); in getResRetType() 197 OverloadKind Kind = getOverloadKind(ElementTy); in getResRetType() 199 Type *FieldTypes[5] = {ElementTy, ElementTy, ElementTy, ElementTy, in getResRetType() 204 static StructType *getCBufRetType(Type *ElementTy) { in getCBufRetType() argument 205 LLVMContext &Ctx = ElementTy->getContext(); in getCBufRetType() 206 OverloadKind Kind = getOverloadKind(ElementTy); in getCBufRetType() 210 if (ElementTy->isDoubleTy() || ElementTy->isIntegerTy(64)) in getCBufRetType() 211 return getOrCreateStructType(TypeName, {ElementTy, ElementTy}, Ctx); in getCBufRetType() 215 if (ElementTy->isHalfTy() || ElementTy->isIntegerTy(16)) { in getCBufRetType() [all …]
|
| H A D | DXILOpBuilder.h | 51 StructType *getResRetType(Type *ElementTy); 54 StructType *getCBufRetType(Type *ElementTy);
|
| H A D | DXILPrettyPrinter.cpp | 52 switch (RI.getTyped().ElementTy) { in getFormatName()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Bitcode/ |
| H A D | BitcodeConvenience.h | 150 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/clang/lib/StaticAnalyzer/Core/ |
| H A D | DynamicExtent.cpp | 73 QualType ElementTy) { in getDynamicElementCount() argument 77 DefinedOrUnknownSVal ElementSize = getElementExtent(ElementTy, SVB); in getDynamicElementCount() 107 QualType ElementTy) { in getDynamicElementCountWithOffset() argument 113 DefinedOrUnknownSVal ElementSize = getElementExtent(ElementTy, SVB); in getDynamicElementCountWithOffset()
|
| H A D | RegionStore.cpp | 546 SVal ArrayToPointer(Loc Array, QualType ElementTy) override; 1340 QualType ElementTy = AT->getElementType(); in VisitCluster() local 1341 uint64_t ElemSize = Ctx.getTypeSize(ElementTy); in VisitCluster() 2643 QualType ElementTy = AT->getElementType(); in bindArray() local 2683 const ElementRegion *ER = MRMgr.getElementRegion(ElementTy, Idx, R, Ctx); in bindArray() 2685 if (ElementTy->isStructureOrClassType()) in bindArray() 2687 else if (ElementTy->isArrayType()) in bindArray() 2697 NewB = setImplicitDefaultValue(NewB, R, ElementTy); in bindArray()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGBuilder.h | 83 llvm::Type *ElementTy = llvm::GetElementPtrInst::getIndexedType( in createConstGEP2_32() local 85 return Address(V, ElementTy, in createConstGEP2_32() 194 llvm::Type *ElementTy, 198 ElementTy, Addr.getAlignment(), Addr.getPointerAuthInfo(), 203 ElementTy, Addr.getAlignment(), Addr.isKnownNonNull()); 208 llvm::Type *ElementTy, 211 return Addr.withElementType(ElementTy); 212 return CreateAddrSpaceCast(Addr, Ty, ElementTy, Name);
|
| H A D | ABIInfoImpl.cpp | 216 llvm::Type *DirectTy = CGF.ConvertTypeForMem(ValueTy), *ElementTy = DirectTy; in emitVoidPtrVAArg() local 227 Addr = Address(CGF.Builder.CreateLoad(Addr), ElementTy, ValueInfo.Align); in emitVoidPtrVAArg() 432 llvm::Type *ElementTy = CGF.ConvertTypeForMem(Ty); in EmitVAArgInstr() local 436 return Address(Addr, ElementTy, TyAlignForABI); in EmitVAArgInstr()
|
| H A D | CGRecordLayoutBuilder.cpp | 1174 llvm::Type *ElementTy = ST->getTypeAtIndex(RL->getLLVMFieldNo(FD)); in ComputeRecordLayout() local 1195 getDataLayout().getTypeAllocSizeInBits(ElementTy) || in ComputeRecordLayout() 1197 getDataLayout().getTypeAllocSizeInBits(ElementTy)) && in ComputeRecordLayout()
|
| H A D | CGExprCXX.cpp | 1001 const CXXNewExpr *E, QualType ElementType, llvm::Type *ElementTy, in EmitNewArrayInitializer() argument 1107 ElementTy = ConvertTypeForMem(AllocType); in EmitNewArrayInitializer() 1108 CurPtr = CurPtr.withElementType(ElementTy); in EmitNewArrayInitializer() 1310 ElementTy, CurPtr.emitRawPointer(*this), 1, "array.next"); in EmitNewArrayInitializer() 1322 QualType ElementType, llvm::Type *ElementTy, in EmitNewInitializer() argument 1327 CGF.EmitNewArrayInitializer(E, ElementType, ElementTy, NewPtr, NumElements, in EmitNewInitializer()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ExprInspectionChecker.cpp | 353 QualType ElementTy; in analyzerDumpElementCount() local 355 ElementTy = TVR->getValueType(); in analyzerDumpElementCount() 357 ElementTy = MR->castAs<SymbolicRegion>()->getPointeeStaticType(); in analyzerDumpElementCount() 360 assert(!ElementTy->isPointerType()); in analyzerDumpElementCount() 363 C.getState(), C.getSVal(getArgExpr(CE, C)), ElementTy); in analyzerDumpElementCount()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Constants.h | 714 template <typename ElementTy> 715 static Constant *get(LLVMContext &Context, ArrayRef<ElementTy> Elts) { 717 return getRaw(StringRef(Data, Elts.size() * sizeof(ElementTy)), Elts.size(), 718 Type::getScalarTy<ElementTy>(Context)); 735 Type *ElementTy) { 736 Type *Ty = ArrayType::get(ElementTy, NumElements); 807 Type *ElementTy) { 808 Type *Ty = VectorType::get(ElementTy, ElementCount::getFixed(NumElements));
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CallLowering.cpp | 238 Type *ElementTy = FuncInfo.getParamByValType(ParamIdx); in setArgFlags() local 239 if (!ElementTy) in setArgFlags() 240 ElementTy = FuncInfo.getParamByRefType(ParamIdx); in setArgFlags() 241 if (!ElementTy) in setArgFlags() 242 ElementTy = FuncInfo.getParamInAllocaType(ParamIdx); in setArgFlags() 243 if (!ElementTy) in setArgFlags() 244 ElementTy = FuncInfo.getParamPreallocatedType(ParamIdx); in setArgFlags() 246 assert(ElementTy && "Must have byval, inalloca or preallocated type"); in setArgFlags() 248 uint64_t MemSize = DL.getTypeAllocSize(ElementTy); in setArgFlags() 261 MemAlign = getTLI()->getByValTypeAlignment(ElementTy, DL); in setArgFlags()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | DXILResource.h | 275 dxil::ElementType ElementTy; member 279 return std::tie(ElementTy, ElementCount) == 280 std::tie(RHS.ElementTy, RHS.ElementCount); 284 return std::tie(ElementTy, ElementCount) < 285 std::tie(RHS.ElementTy, RHS.ElementCount);
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVGlobalRegistry.h | 210 Type *ElementTy = findDeducedElementType(Global); in getDeducedGlobalValueType() local 211 if (!ElementTy) { in getDeducedGlobalValueType() 216 ElementTy = findDeducedCompositeType(GlobalElem); in getDeducedGlobalValueType() 218 return ElementTy ? ElementTy : Global->getValueType(); in getDeducedGlobalValueType()
|
| H A D | SPIRVPreLegalizer.cpp | 312 Type *ElementTy = toTypedPointer(GR->getDeducedGlobalValueType(Global)); in propagateSPIRVType() local 313 auto *Ty = TypedPointerType::get(ElementTy, in propagateSPIRVType() 534 Type *ElementTy = getMDOperandAsType(MI.getOperand(2).getMetadata(), 0); in generateAssignInstrs() local 536 ElementTy, MI, in generateAssignInstrs()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/ |
| H A D | Constant.h | 602 template <typename ElementTy> 603 static Constant *get(Context &Ctx, ArrayRef<ElementTy> Elts) { in get() 622 Type *ElementTy) { in getRaw() argument 624 llvm::ConstantDataArray::getRaw(Data, NumElements, ElementTy->LLVMTy); in getRaw() 625 return ElementTy->getContext().getOrCreateConstant(LLVMC); in getRaw() 714 Type *ElementTy) { in getRaw() argument 716 llvm::ConstantDataVector::getRaw(Data, NumElements, ElementTy->LLVMTy); in getRaw() 717 return ElementTy->getContext().getOrCreateConstant(NewLLVMC); in getRaw()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64Arm64ECCallLowering.cpp | 341 Type *ElementTy = T->getArrayElementType(); in canonicalizeThunkType() local 343 uint64_t ElementSizePerBytes = DL.getTypeSizeInBits(ElementTy) / 8; in canonicalizeThunkType() 345 if (ElementTy->isFloatTy() || ElementTy->isDoubleTy()) { in canonicalizeThunkType() 346 Out << (ElementTy->isFloatTy() ? "F" : "D") << TotalSizeBytes; in canonicalizeThunkType()
|
| H A D | AArch64TargetTransformInfo.h | 338 bool isLegalBroadcastLoad(Type *ElementTy, in isLegalBroadcastLoad() argument 343 switch (unsigned ElementBits = ElementTy->getScalarSizeInBits()) { in isLegalBroadcastLoad()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | SROA.cpp | 2732 Type *ElementTy; member in __anondf5662880e11::AllocaSliceRewriter 2787 ElementTy(VecTy ? VecTy->getElementType() : nullptr), in AllocaSliceRewriter() 2788 ElementSize(VecTy ? DL.getTypeSizeInBits(ElementTy).getFixedValue() / 8 in AllocaSliceRewriter() 2793 assert((DL.getTypeSizeInBits(ElementTy).getFixedValue() % 8) == 0 && in AllocaSliceRewriter() 3076 ? ElementTy in rewriteVectorizedStoreInst() 3077 : FixedVectorType::get(ElementTy, NumElements); in rewriteVectorizedStoreInst() 3307 assert(ElementTy == ScalarTy); in visitMemSetInst() 3317 II.getValue(), DL.getTypeSizeInBits(ElementTy).getFixedValue() / 8); in visitMemSetInst() 3318 Splat = convertValue(DL, IRB, Splat, ElementTy); in visitMemSetInst() 4320 Type *ElementTy; in getTypePartition() local [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | MicrosoftMangle.cpp | 3309 QualType ElementTy(T, 0); in mangleArrayType() local 3312 if (ElementTy->isConstantArrayType()) { in mangleArrayType() 3314 getASTContext().getAsConstantArrayType(ElementTy); in mangleArrayType() 3316 ElementTy = CAT->getElementType(); in mangleArrayType() 3317 } else if (ElementTy->isIncompleteArrayType()) { in mangleArrayType() 3319 getASTContext().getAsIncompleteArrayType(ElementTy); in mangleArrayType() 3321 ElementTy = IAT->getElementType(); in mangleArrayType() 3322 } else if (ElementTy->isVariableArrayType()) { in mangleArrayType() 3324 getASTContext().getAsVariableArrayType(ElementTy); in mangleArrayType() 3326 ElementTy = VAT->getElementType(); in mangleArrayType() [all …]
|
| H A D | ASTDiagnostic.cpp | 140 QualType ElementTy = in desugarForDiagnostic() local 144 ElementTy, CAT->getSize(), CAT->getSizeExpr(), in desugarForDiagnostic() 147 QT = Context.getVariableArrayType(ElementTy, VAT->getSizeExpr(), in desugarForDiagnostic() 152 ElementTy, DSAT->getSizeExpr(), DSAT->getSizeModifier(), in desugarForDiagnostic() 155 QT = Context.getIncompleteArrayType(ElementTy, IAT->getSizeModifier(), in desugarForDiagnostic()
|
| /freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | Store.h | 162 virtual SVal ArrayToPointer(Loc Array, QualType ElementTy) = 0;
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | VectorUtils.cpp | 1382 Type *ElementTy = getLoadStoreType(&I); in collectConstStrideAccesses() local 1386 uint64_t Size = DL.getTypeAllocSize(ElementTy); in collectConstStrideAccesses() 1387 if (Size * 8 != DL.getTypeSizeInBits(ElementTy)) in collectConstStrideAccesses() 1398 getPtrStride(PSE, ElementTy, Ptr, TheLoop, Strides, in collectConstStrideAccesses()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVTargetTransformInfo.cpp | 1838 Type *ElementTy = Ty->getElementType(); in getArithmeticReductionCost() local 1839 if (ElementTy->isIntegerTy(1)) { in getArithmeticReductionCost() 1845 getCmpSelInstrCost(Instruction::ICmp, ElementTy, ElementTy, in getArithmeticReductionCost() 1866 getCmpSelInstrCost(Instruction::ICmp, ElementTy, ElementTy, in getArithmeticReductionCost() 1887 getCmpSelInstrCost(Instruction::ICmp, ElementTy, ElementTy, in getArithmeticReductionCost()
|