Home
last modified time | relevance | path

Searched refs:ElemType (Results 1 – 25 of 49) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DDirectX.cpp55 llvm::Type *ElemType = CGM.getTypes().ConvertTypeForMem(ContainedTy); in getHLSLType() local
63 const clang::Type *ElemType = ContainedTy->getUnqualifiedDesugaredType(); in getHLSLType() local
64 if (ElemType->isVectorType()) in getHLSLType()
65 ElemType = cast<clang::VectorType>(ElemType) in getHLSLType()
68 Ints.push_back(/*IsSigned*/ ElemType->isSignedIntegerType()); in getHLSLType()
71 return llvm::TargetExtType::get(Ctx, TypeName, {ElemType}, Ints); in getHLSLType()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
H A DCxxStringTypes.cpp38 getElementTraits(StringElementType ElemType) { in getElementTraits() argument
39 switch (ElemType) { in getElementTraits()
51 template <StringElementType ElemType>
61 options.SetPrefixToken(getElementTraits(ElemType).first); in CharStringSummaryProvider()
63 if (!StringPrinter::ReadStringAndDumpToStream<ElemType>(options)) in CharStringSummaryProvider()
69 template <StringElementType ElemType>
81 constexpr auto ElemTraits = getElementTraits(ElemType); in CharSummaryProvider()
94 return StringPrinter::ReadBufferAndDumpToStream<ElemType>(options); in CharSummaryProvider()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCastSizeChecker.cpp64 const Type *ElemType = Last->getType()->getArrayElementTypeNoTypeQual(); in evenFlexibleArraySize() local
65 if (!ElemType) in evenFlexibleArraySize()
70 FlexSize = Ctx.getTypeSizeInChars(ElemType); in evenFlexibleArraySize()
76 FlexSize = Ctx.getTypeSizeInChars(ElemType); in evenFlexibleArraySize()
H A DArrayBoundChecker.cpp205 QualType ElemType = CurRegion->getElementType(); in computeOffset() local
210 if (ElemType->isIncompleteType()) in computeOffset()
215 SVB.getContext().getTypeSizeInChars(ElemType).getQuantity()); in computeOffset()
429 QualType ElemType = EReg->getElementType(); in getExceedsMsgs() local
434 int64_t ElemSize = ACtx.getTypeSizeInChars(ElemType).getQuantity(); in getExceedsMsgs()
443 Out << "'" << ElemType.getAsString() << "' element in "; in getExceedsMsgs()
461 Out << " '" << ElemType.getAsString() << "' element"; in getExceedsMsgs()
H A DMallocSizeofChecker.cpp168 QualType ElemType = AT->getElementType(); in compatibleWithArrayType() local
171 T = ElemType; in compatibleWithArrayType()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVISelLowering.cpp191 SPIRVType *ElemType = GR.getSPIRVTypeForVReg(ElemTypeReg, MF); in validatePtrTypes() local
192 if (!ElemType) in validatePtrTypes()
196 bool IsEqualTypes = IsSameMF ? ElemType == ResType in validatePtrTypes()
197 : GR.getTypeForSPIRVType(ElemType) == ResTy; in validatePtrTypes()
223 SPIRVType *ElemType = GR.getSPIRVTypeForVReg(OpType->getOperand(2).getReg()); in validateGroupWaitEventsPtr() local
224 if (!ElemType || ElemType->getOpcode() == SPIRV::OpTypeEvent) in validateGroupWaitEventsPtr()
267 SPIRVType *ElemType = GR.getSPIRVTypeForVReg(OpType->getOperand(2).getReg()); in validatePtrUnwrapStructField() local
268 if (!ElemType || ElemType->getOpcode() != SPIRV::OpTypeStruct || in validatePtrUnwrapStructField()
269 ElemType->getNumOperands() != 2) in validatePtrUnwrapStructField()
273 GR.getSPIRVTypeForVReg(ElemType->getOperand(1).getReg()); in validatePtrUnwrapStructField()
H A DSPIRVGlobalRegistry.cpp267 SPIRVType *ElemType, in getOpTypeVector() argument
269 auto EleOpc = ElemType->getOpcode(); in getOpTypeVector()
278 .addUse(getSPIRVTypeID(ElemType)) in getOpTypeVector()
823 SPIRVType *ElemType, in getOpTypeArray() argument
827 assert((ElemType->getOpcode() != SPIRV::OpTypeVoid) && in getOpTypeArray()
837 .addUse(getSPIRVTypeID(ElemType)) in getOpTypeArray()
844 .addUse(getSPIRVTypeID(ElemType)); in getOpTypeArray()
848 if (ExplicitLayoutRequired && !isResourceType(ElemType)) { in getOpTypeArray()
849 Type *ET = const_cast<Type *>(getTypeForSPIRVType(ElemType)); in getOpTypeArray()
932 SPIRV::StorageClass::StorageClass SC, SPIRVType *ElemType, in getOpTypePointer() argument
[all …]
H A DSPIRVGlobalRegistry.h443 SPIRVType *getOpTypeVector(uint32_t NumElems, SPIRVType *ElemType,
446 SPIRVType *getOpTypeArray(uint32_t NumElems, SPIRVType *ElemType,
458 SPIRVType *ElemType, MachineIRBuilder &MIRBuilder,
609 Type *ElemType,
627 const SPIRVType *ElemType,
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAGHVX.cpp319 using ElemType = int; typedef
320 static constexpr ElemType Ignore = ElemType(-1);
332 PermNetwork(ArrayRef<ElemType> Ord, unsigned Mult = 1) { in PermNetwork()
362 uint8_t ctl(ElemType Pos, unsigned Step) const { in ctl()
374 std::vector<ElemType> Order;
380 ForwardDeltaNetwork(ArrayRef<ElemType> Ord) : PermNetwork(Ord) {} in ForwardDeltaNetwork()
390 bool route(ElemType *P, RowType *T, unsigned Size, unsigned Step);
394 ReverseDeltaNetwork(ArrayRef<ElemType> Ord) : PermNetwork(Ord) {} in ReverseDeltaNetwork()
404 bool route(ElemType *P, RowType *T, unsigned Size, unsigned Step);
408 BenesNetwork(ArrayRef<ElemType> Ord) : PermNetwork(Ord, 2) {} in BenesNetwork()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetTransformInfo.h264 EVT ElemType = DataTypeVT.getScalarType(); in isLegalMaskedLoadStore() local
265 if (!ST->enableUnalignedVectorMem() && Alignment < ElemType.getStoreSize()) in isLegalMaskedLoadStore()
268 return TLI->isLegalElementTypeForRVV(ElemType); in isLegalMaskedLoadStore()
296 EVT ElemType = DataTypeVT.getScalarType(); in isLegalMaskedGatherScatter() local
297 if (!ST->enableUnalignedVectorMem() && Alignment < ElemType.getStoreSize()) in isLegalMaskedGatherScatter()
300 return TLI->isLegalElementTypeForRVV(ElemType); in isLegalMaskedGatherScatter()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DRelLookupTableConverter.cpp65 Type *ElemType = Array->getType()->getElementType(); in shouldConvertToRelLookupTable() local
66 if (!ElemType->isPointerTy() || DL.getPointerTypeSizeInBits(ElemType) != 64) in shouldConvertToRelLookupTable()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DEvaluationResult.cpp71 QualType ElemType = CAT->getElementType(); in CheckArrayInitialized() local
73 if (ElemType->isRecordType()) { in CheckArrayInitialized()
79 } else if (const auto *ElemCAT = dyn_cast<ConstantArrayType>(ElemType)) { in CheckArrayInitialized()
H A DInterpBuiltinBitCast.cpp95 QualType ElemType = FieldDesc->getElemQualType(); in enumerateData() local
96 Bits ElemSize = Bits(Ctx.getASTContext().getTypeSize(ElemType)); in enumerateData()
97 PrimType ElemT = *Ctx.classify(ElemType); in enumerateData()
114 QualType ElemType = FieldDesc->getElemQualType(); in enumerateData() local
115 Bits ElemSize = Bits(Ctx.getASTContext().getTypeSize(ElemType)); in enumerateData()
H A DInterpState.cpp142 QualType ElemType = TAL[0].getAsType(); in getStdAllocatorCaller() local
144 return {NewCall, ElemType}; in getStdAllocatorCaller()
H A DPointer.cpp224 QualType ElemType = Desc->getElemQualType(); in toAPValue() local
225 Offset += (Index * ASTCtx.getTypeSizeInChars(ElemType)); in toAPValue()
249 QualType ElemType = Desc->getElemQualType(); in toAPValue() local
250 if (const auto *RD = ElemType->getAsRecordDecl(); in toAPValue()
254 Offset += (Index * ASTCtx.getTypeSizeInChars(ElemType)); in toAPValue()
H A DInterpBuiltin.cpp1470 auto [NewCall, ElemType] = S.getStdAllocatorCaller("allocate"); in interp__builtin_operator_new()
1472 if (ElemType.isNull()) { in interp__builtin_operator_new()
1480 if (ElemType->isIncompleteType() || ElemType->isFunctionType()) { in interp__builtin_operator_new()
1482 << (ElemType->isIncompleteType() ? 0 : 1) << ElemType; in interp__builtin_operator_new()
1505 CharUnits ElemSize = S.getASTContext().getTypeSizeInChars(ElemType); in interp__builtin_operator_new()
1515 << Bytes << APSInt(ElemSizeAP, true) << ElemType; in interp__builtin_operator_new()
1534 std::optional<PrimType> ElemT = S.getContext().classify(ElemType); in interp__builtin_operator_new()
1550 S.P.createDescriptor(NewCall, ElemType.getTypePtr(), in interp__builtin_operator_new()
1562 ElemType, NumElems, nullptr, ArraySizeModifier::Normal, 0); in interp__builtin_operator_new()
1642 QualType ElemType = Arg.getFieldDesc()->getElemQualType(); in interp__builtin_vector_reduce() local
[all …]
H A DDescriptor.cpp466 auto MakeArrayType = [&](QualType ElemType) -> QualType { in getDataType() argument
469 ElemType, APInt(64, static_cast<uint64_t>(getNumElems()), false), in getDataType()
471 return ElemType; in getDataType()
H A DCompiler.cpp3622 QualType ElemType = in VisitCXXNewExpr() local
3624 PrimType InitT = classifyPrim(ElemType); in VisitCXXNewExpr()
3625 if (!this->visitZeroInitializer(InitT, ElemType, E)) in VisitCXXNewExpr()
3875 QualType ElemType = VT->getElementType(); in VisitConvertVectorExpr() local
3876 PrimType ElemT = classifyPrim(ElemType); in VisitConvertVectorExpr()
3896 if (!this->emitPrimCast(SrcElemT, ElemT, ElemType, E)) in VisitConvertVectorExpr()
3898 } else if (ElemType->isFloatingType() && SrcType != ElemType) { in VisitConvertVectorExpr()
3899 const auto *TargetSemantics = &Ctx.getFloatSemantics(ElemType); in VisitConvertVectorExpr()
4286 QualType ElemType = AT->getElementType(); in visitZeroArrayInitializer() local
4289 if (std::optional<PrimType> ElemT = classify(ElemType)) { in visitZeroArrayInitializer()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DWasm.h329 ValType ElemType; member
550 return LHS.ElemType == RHS.ElemType && LHS.Limits == RHS.Limits;
H A DWasmTraits.h99 TableType.ElemType,
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DWasmObjectFile.cpp305 auto ElemType = parseValType(Ctx, readVaruint32(Ctx)); in readTableType() local
306 TableType.ElemType = ElemType; in readTableType()
1300 auto ElemType = Im.Table.ElemType; in parseImportSection() local
1301 if (ElemType != wasm::ValType::FUNCREF && in parseImportSection()
1302 ElemType != wasm::ValType::EXTERNREF && in parseImportSection()
1303 ElemType != wasm::ValType::EXNREF && in parseImportSection()
1304 ElemType != wasm::ValType::OTHERREF) in parseImportSection()
1359 auto ElemType = Tables.back().Type.ElemType; in parseTableSection() local
1360 if (ElemType != wasm::ValType::FUNCREF && in parseTableSection()
1361 ElemType != wasm::ValType::EXTERNREF && in parseTableSection()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp1000 Type *ElemType = GV->getValueType(); in getPreferredAlign() local
1001 Align Alignment = getPrefTypeAlign(ElemType); in getPreferredAlign()
1006 Alignment = std::max(*GVAlignment, getABITypeAlign(ElemType)); in getPreferredAlign()
1016 if (getTypeSizeInBits(ElemType) > 128) in getPreferredAlign()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyTargetStreamer.cpp80 << WebAssembly::typeToString(static_cast<wasm::ValType>(Type.ElemType)); in emitTableType()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCSymbolWasm.h116 getTableType().ElemType == wasm::ValType::FUNCREF; in isFunctionTable()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/BTF/
H A DBTF.h170 uint32_t ElemType; ///< Element type member

12