Home
last modified time | relevance | path

Searched refs:ScalarType (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/clang/lib/Support/
H A DRISCVVIntrinsicUtils.cpp109 if (ScalarType == Invalid) in verifyType()
138 switch (ScalarType) { in initBuiltinStr()
225 switch (ScalarType) { in initClangBuiltinStr()
257 switch (ScalarType) { in initTypeStr()
310 switch (ScalarType) { in initShortStr()
351 ScalarType = ScalarTypeKind::Float; in applyBasicType()
355 ScalarType = ScalarTypeKind::Float; in applyBasicType()
359 ScalarType = ScalarTypeKind::Float; in applyBasicType()
599 ScalarType = ScalarTypeKind::Void; in applyModifier()
602 ScalarType = ScalarTypeKind::Size_t; in applyModifier()
[all …]
/llvm-project-15.0.7/clang/utils/TableGen/
H A DMveEmitter.cpp238 class ScalarType : public CRegularNamedType { class
290 const ScalarType *Element;
594 const ScalarType *IntegerType;
615 const ScalarType *IntegerType;
1129 const ScalarType *STSize = cast<ScalarType>(getType(D->getArg(0), Param)); in getType()
1130 const ScalarType *STKind = cast<ScalarType>(getType(D->getArg(1), Param)); in getType()
1132 const ScalarType *RT = kv.second.get(); in getType()
1140 const ScalarType *STKind = cast<ScalarType>(getType(D->getArg(0), Param)); in getType()
1144 const ScalarType *RT = kv.second.get(); in getType()
1777 const ScalarType *ST = kv.second.get(); in EmitHeader()
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-cxxdump/
H A Deh.test143 COFF-I386: __CT??_R0?AUA@@@84[Flags.ScalarType]: false
152 COFF-I386: __CT??_R0?AUA@@@84044[Flags.ScalarType]: false
161 COFF-I386: __CT??_R0?AUB@@@844[Flags.ScalarType]: false
179 COFF-I386: __CT??_R0?AUM@@@88[Flags.ScalarType]: false
197 COFF-I386: __CT??_R0?AW4E@@@84[Flags.ScalarType]: true
206 COFF-I386: __CT??_R0PAUA@@@84044[Flags.ScalarType]: true
215 COFF-I386: __CT??_R0PAUC@@@84048[Flags.ScalarType]: true
224 COFF-I386: __CT??_R0PAUS@@@84[Flags.ScalarType]: true
233 COFF-I386: __CT??_R0PAW4E@@@84[Flags.ScalarType]: true
242 COFF-I386: __CT??_R0PAX@84[Flags.ScalarType]: true
[all …]
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVTypes.cpp108 return type.getRank() == 1 && type.getElementType().isa<ScalarType>(); in isValid()
154 return type.getElementType().cast<ScalarType>().getExtensions( in getExtensions()
490 bool ScalarType::classof(Type type) { in classof()
500 bool ScalarType::isValid(FloatType type) { return !type.isBF16(); } in isValid()
502 bool ScalarType::isValid(IntegerType type) { in isValid()
546 void ScalarType::getCapabilities( in getCapabilities()
634 Optional<int64_t> ScalarType::getSizeInBytes() { in getSizeInBytes()
655 if (type.isa<ScalarType>()) in classof()
668 if (auto scalarType = dyn_cast<ScalarType>()) { in getExtensions()
688 if (auto scalarType = dyn_cast<ScalarType>()) { in getCapabilities()
[all …]
H A DSPIRVDialect.cpp173 if (!ScalarType::isValid(t)) { in parseAndVerifyType()
H A DSPIRVOps.cpp3751 if (!pointeeType.isa<spirv::ScalarType>() && !pointeeType.isa<VectorType>()) in verifyPointerAndCoopMatrixType()
/llvm-project-15.0.7/clang/include/clang/Support/
H A DRISCVVIntrinsicUtils.h174 ScalarTypeKind ScalarType = Invalid; variable
223 bool isFloat() const { return ScalarType == ScalarTypeKind::Float; } in isFloat()
225 return ScalarType == ScalarTypeKind::SignedInteger; in isSignedInteger()
237 ScalarTypeKind getScalarType() const { return ScalarType; } in getScalarType()
/llvm-project-15.0.7/mlir/lib/Conversion/VectorToSPIRV/
H A DVectorToSPIRV.cpp93 if (adaptor.getVector().getType().isa<spirv::ScalarType>()) { in matchAndRewrite()
125 if (dstType.isa<spirv::ScalarType>()) { in matchAndRewrite()
228 if (srcVector.getType().isa<spirv::ScalarType>()) { in matchAndRewrite()
229 assert(!dstVector.getType().isa<spirv::ScalarType>()); in matchAndRewrite()
327 if (dstType.isa<spirv::ScalarType>()) { in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/
H A DSPIRVConversion.cpp193 if (type.isa<spirv::ScalarType>()) { in getTypeNumBytes()
267 spirv::ScalarType type, in convertScalarType()
324 targetEnv, options, type.getElementType().cast<spirv::ScalarType>(),
347 auto scalarType = type.getElementType().dyn_cast<spirv::ScalarType>(); in convertTensorType()
395 .dyn_cast<spirv::ScalarType>(); in convertBoolMemrefType()
445 } else if (auto scalarType = elementType.dyn_cast<spirv::ScalarType>()) { in convertMemrefType()
503 if (auto scalarType = intType.dyn_cast<spirv::ScalarType>()) in SPIRVTypeConverter()
509 if (auto scalarType = floatType.dyn_cast<spirv::ScalarType>()) in SPIRVTypeConverter()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVGatherScatterLowering.cpp89 Type *ScalarType = DataType->getScalarType(); in isLegalTypeAndAlignment() local
90 if (!TLI->isLegalElementTypeForRVV(ScalarType)) in isLegalTypeAndAlignment()
94 if (MA && MA->value() < DL->getTypeStoreSize(ScalarType).getFixedSize()) in isLegalTypeAndAlignment()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaTemplateVariadic.cpp1270 QualType ScalarType; in BuildEmptyCXXFoldExpr() local
1277 ScalarType = Context.VoidTy; in BuildEmptyCXXFoldExpr()
1286 ScalarType, Context.getTrivialTypeSourceInfo(ScalarType, EllipsisLoc), in BuildEmptyCXXFoldExpr()
H A DSemaExpr.cpp1345 QualType ScalarType = in handleComplexIntConversion() local
1349 return S.Context.getComplexType(ScalarType); in handleComplexIntConversion()
1354 QualType ScalarType = in handleComplexIntConversion() local
1357 QualType ComplexType = S.Context.getComplexType(ScalarType); in handleComplexIntConversion()
1367 QualType ScalarType = in handleComplexIntConversion() local
1370 QualType ComplexType = S.Context.getComplexType(ScalarType); in handleComplexIntConversion()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Utils/
H A DLayoutUtils.cpp82 if (type.isa<spirv::ScalarType>()) { in decorateType()
/llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/
H A DSPIRVTypes.h79 class ScalarType : public SPIRVType {
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVGlobalRegistry.cpp646 SPIRVType *ScalarType = getSPIRVTypeForVReg(ScalarTypeVReg); in isScalarOrVectorOfType() local
647 return ScalarType->getOpcode() == TypeOpcode; in isScalarOrVectorOfType()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DVectorCombine.cpp914 Type *ScalarType, Value *Idx, in computeAlignmentAfterScalarization() argument
918 C->getZExtValue() * DL.getTypeStoreSize(ScalarType)); in computeAlignmentAfterScalarization()
919 return commonAlignment(VectorAlignment, DL.getTypeStoreSize(ScalarType)); in computeAlignmentAfterScalarization()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86TargetTransformInfo.cpp3670 Type *ScalarType = Val->getScalarType(); in getVectorInstrCost() local
3683 Align SclAlign = DL.getPrefTypeAlign(ScalarType); in getVectorInstrCost()
3689 getMemoryOpCost(Instruction::Load, ScalarType, SclAlign, 0, in getVectorInstrCost()
3696 getMemoryOpCost(Instruction::Store, ScalarType, SclAlign, 0, in getVectorInstrCost()
3707 ScalarType->getScalarSizeInBits() == 1 && in getVectorInstrCost()
3740 if (ScalarType->isFloatingPointTy()) in getVectorInstrCost()
3744 if (ScalarType->isIntegerTy() && Opcode == Instruction::ExtractElement) in getVectorInstrCost()
3776 SubTy = FixedVectorType::get(ScalarType, SubNumElts); in getVectorInstrCost()
3780 int IntOrFpCost = ScalarType->isFloatingPointTy() ? 0 : 1; in getVectorInstrCost()
3786 if (Opcode == Instruction::ExtractElement && ScalarType->isPointerTy()) in getVectorInstrCost()
/llvm-project-15.0.7/llvm/lib/IR/
H A DAutoUpgrade.cpp4146 MDNode *ScalarType = MDNode::get(Context, Elts); in UpgradeTBAANode() local
4148 Metadata *Elts2[] = {ScalarType, ScalarType, in UpgradeTBAANode()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp13106 MVT ScalarType; in PerformVQDMULHCombine() local
13110 ScalarType = MVT::i8; in PerformVQDMULHCombine()
13114 ScalarType = MVT::i16; in PerformVQDMULHCombine()
13118 ScalarType = MVT::i32; in PerformVQDMULHCombine()
13144 VecVT.getScalarType() != ScalarType || in PerformVQDMULHCombine()
13145 VT.getScalarSizeInBits() < ScalarType.getScalarSizeInBits() * 2) in PerformVQDMULHCombine()
13150 EVT LegalVecVT = MVT::getVectorVT(ScalarType, LegalLanes); in PerformVQDMULHCombine()
19098 Type *ScalarType = SVIType->getScalarType(); in shouldConvertSplatType() local
19100 if (ScalarType->isFloatTy()) in shouldConvertSplatType()
19102 if (ScalarType->isHalfTy()) in shouldConvertSplatType()