Home
last modified time | relevance | path

Searched refs:eltType (Results 1 – 25 of 28) sorted by relevance

12

/external/clang/include/clang/CodeGen/
DCGFunctionInfo.h201 for (auto eltType : coerceToType->elements()) { in getCoerceAndExpand() local
202 if (isPaddingForCoerceAndExpand(eltType)) continue; in getCoerceAndExpand()
204 assert(unpaddedStruct->getElementType(unpaddedIndex) == eltType); in getCoerceAndExpand()
206 assert(unpaddedIndex == 0 && unpaddedCoerceToType == eltType); in getCoerceAndExpand()
225 static bool isPaddingForCoerceAndExpand(llvm::Type *eltType) { in isPaddingForCoerceAndExpand() argument
226 if (eltType->isArrayTy()) { in isPaddingForCoerceAndExpand()
227 assert(eltType->getArrayElementType()->isIntegerTy(8)); in isPaddingForCoerceAndExpand()
/external/llvm-project/clang/include/clang/CodeGen/
DCGFunctionInfo.h252 for (auto eltType : coerceToType->elements()) { in getCoerceAndExpand() local
253 if (isPaddingForCoerceAndExpand(eltType)) continue; in getCoerceAndExpand()
255 assert(unpaddedStruct->getElementType(unpaddedIndex) == eltType); in getCoerceAndExpand()
257 assert(unpaddedIndex == 0 && unpaddedCoerceToType == eltType); in getCoerceAndExpand()
276 static bool isPaddingForCoerceAndExpand(llvm::Type *eltType) { in isPaddingForCoerceAndExpand() argument
277 if (eltType->isArrayTy()) { in isPaddingForCoerceAndExpand()
278 assert(eltType->getArrayElementType()->isIntegerTy(8)); in isPaddingForCoerceAndExpand()
/external/llvm-project/mlir/lib/IR/
DBuiltinAttributes.cpp783 auto eltType = type.getElementType(); in get() local
796 size_t bitWidth = getDenseElementBitWidth(eltType); in get()
804 assert(eltType == values[i].getType() && in get()
806 if (eltType.isa<FloatType>()) in get()
808 else if (eltType.isa<IntegerType>()) in get()
997 auto eltType = getType().getElementType().dyn_cast<IntegerType>(); in getBoolValues() local
998 assert(eltType && eltType.getWidth() == 1 && "expected i1 integer type"); in getBoolValues()
999 (void)eltType; in getBoolValues()
1417 auto eltType = getType().getElementType().cast<FloatType>(); in getZeroAPFloat() local
1418 return APFloat(eltType.getFloatSemantics()); in getZeroAPFloat()
[all …]
DAttributeDetail.h352 inline size_t getDenseElementBitWidth(Type eltType) { in getDenseElementBitWidth() argument
354 if (ComplexType comp = eltType.dyn_cast<ComplexType>()) in getDenseElementBitWidth()
356 if (eltType.isIndex()) in getDenseElementBitWidth()
358 return eltType.getIntOrFloatBitWidth(); in getDenseElementBitWidth()
/external/llvm-project/mlir/lib/Parser/
DAttributeParser.cpp519 Type eltType = type.getElementType(); in getAttr() local
523 (eltType.isIntOrFloat() || eltType.isa<ComplexType>())) in getAttr()
536 if (ComplexType complexTy = eltType.dyn_cast<ComplexType>()) { in getAttr()
537 eltType = complexTy.getElementType(); in getAttr()
542 if (eltType.isIntOrIndex()) { in getAttr()
544 if (failed(getIntAttrElements(loc, eltType, intValues))) in getAttr()
556 if (FloatType floatTy = eltType.dyn_cast<FloatType>()) { in getAttr()
/external/llvm-project/mlir/lib/Conversion/VectorToLLVM/
DConvertVectorToLLVM.cpp547 Type eltType = reductionOp.dest().getType(); in matchAndRewrite() local
548 Type llvmType = typeConverter->convertType(eltType); in matchAndRewrite()
549 if (eltType.isIntOrIndex()) { in matchAndRewrite()
558 (eltType.isIndex() || eltType.isUnsignedInteger())) in matchAndRewrite()
565 (eltType.isIndex() || eltType.isUnsignedInteger())) in matchAndRewrite()
585 if (!eltType.isa<FloatType>()) in matchAndRewrite()
594 rewriter.getZeroAttr(eltType)); in matchAndRewrite()
604 rewriter.getFloatAttr(eltType, 1.0)); in matchAndRewrite()
1341 Type eltType = vectorType ? vectorType.getElementType() : printType; in matchAndRewrite() local
1343 if (eltType.isF32()) { in matchAndRewrite()
[all …]
/external/clang/lib/CodeGen/
DSwiftCallingConv.cpp74 QualType eltType = arrayType->getElementType(); in addTypedData() local
75 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); in addTypedData()
77 addTypedData(eltType, begin + i * eltSize); in addTypedData()
82 auto eltType = complexType->getElementType(); in addTypedData() local
83 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); in addTypedData()
84 auto eltLLVMType = CGM.getTypes().ConvertType(eltType); in addTypedData()
DCodeGenFunction.cpp1464 QualType eltType; in EmitNullInitialization() local
1466 std::tie(numElts, eltType) = getVLASize(vlaType); in EmitNullInitialization()
1469 CharUnits eltSize = getContext().getTypeSizeInChars(eltType); in EmitNullInitialization()
1581 QualType eltType; in emitArrayLength() local
1592 eltType = arrayType->getElementType(); in emitArrayLength()
1608 eltType = arrayType->getElementType(); in emitArrayLength()
1609 arrayType = getContext().getAsArrayType(eltType); in emitArrayLength()
1612 llvm::Type *baseType = ConvertType(eltType); in emitArrayLength()
1621 baseType = eltType; in emitArrayLength()
DCGCXXABI.h81 virtual bool requiresArrayCookie(const CXXDeleteExpr *E, QualType eltType);
DCGExpr.cpp2835 QualType eltType; in getFixedSizeElementType() local
2837 eltType = vla->getElementType(); in getFixedSizeElementType()
2838 } while ((vla = ctx.getAsVariableArrayType(eltType))); in getFixedSizeElementType()
2839 return eltType; in getFixedSizeElementType()
2844 QualType eltType, bool inbounds, in emitArraySubscriptGEP() argument
2855 if (auto vla = CGF.getContext().getAsVariableArrayType(eltType)) { in emitArraySubscriptGEP()
2856 eltType = getFixedSizeElementType(CGF.getContext(), vla); in emitArraySubscriptGEP()
2860 CharUnits eltSize = CGF.getContext().getTypeSizeInChars(eltType); in emitArraySubscriptGEP()
DCGExprComplex.cpp311 QualType eltType = complexType->castAs<ComplexType>()->getElementType(); in emitAddrOfImagComponent() local
312 CharUnits offset = getContext().getTypeSizeInChars(eltType); in emitAddrOfImagComponent()
DCGCall.cpp2392 llvm::Type *eltType = coercionType->getElementType(i); in EmitFunctionProlog() local
2393 if (ABIArgInfo::isPaddingForCoerceAndExpand(eltType)) in EmitFunctionProlog()
3806 llvm::Type *eltType = coercionType->getElementType(i); in EmitCall() local
3807 if (ABIArgInfo::isPaddingForCoerceAndExpand(eltType)) continue; in EmitCall()
4031 llvm::Type *eltType = coercionType->getElementType(i); in EmitCall() local
4032 if (ABIArgInfo::isPaddingForCoerceAndExpand(eltType)) continue; in EmitCall()
DCGExprScalar.cpp2009 QualType eltType; in VisitUnaryExprOrTypeTraitExpr() local
2011 std::tie(numElts, eltType) = CGF.getVLASize(VAT); in VisitUnaryExprOrTypeTraitExpr()
2016 CharUnits eltSize = CGF.getContext().getTypeSizeInChars(eltType); in VisitUnaryExprOrTypeTraitExpr()
/external/llvm-project/clang/lib/CodeGen/
DSwiftCallingConv.cpp77 QualType eltType = arrayType->getElementType(); in addTypedData() local
78 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); in addTypedData()
80 addTypedData(eltType, begin + i * eltSize); in addTypedData()
85 auto eltType = complexType->getElementType(); in addTypedData() local
86 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); in addTypedData()
87 auto eltLLVMType = CGM.getTypes().ConvertType(eltType); in addTypedData()
DCodeGenFunction.cpp1917 QualType eltType; in emitArrayLength() local
1928 eltType = arrayType->getElementType(); in emitArrayLength()
1944 eltType = arrayType->getElementType(); in emitArrayLength()
1945 arrayType = getContext().getAsArrayType(eltType); in emitArrayLength()
1948 llvm::Type *baseType = ConvertType(eltType); in emitArrayLength()
1957 baseType = eltType; in emitArrayLength()
DCGCXXABI.h83 virtual bool requiresArrayCookie(const CXXDeleteExpr *E, QualType eltType);
DCGExpr.cpp3606 QualType eltType; in getFixedSizeElementType() local
3608 eltType = vla->getElementType(); in getFixedSizeElementType()
3609 } while ((vla = ctx.getAsVariableArrayType(eltType))); in getFixedSizeElementType()
3610 return eltType; in getFixedSizeElementType()
3651 QualType eltType, bool inbounds, in emitArraySubscriptGEP() argument
3665 if (auto vla = CGF.getContext().getAsVariableArrayType(eltType)) { in emitArraySubscriptGEP()
3666 eltType = getFixedSizeElementType(CGF.getContext(), vla); in emitArraySubscriptGEP()
3670 CharUnits eltSize = CGF.getContext().getTypeSizeInChars(eltType); in emitArraySubscriptGEP()
DCGCall.cpp2737 llvm::Type *eltType = coercionType->getElementType(i); in EmitFunctionProlog() local
2738 if (ABIArgInfo::isPaddingForCoerceAndExpand(eltType)) in EmitFunctionProlog()
4726 llvm::Type *eltType = coercionType->getElementType(i); in EmitCall() local
4727 if (ABIArgInfo::isPaddingForCoerceAndExpand(eltType)) continue; in EmitCall()
5082 llvm::Type *eltType = coercionType->getElementType(i); in EmitCall() local
5083 if (ABIArgInfo::isPaddingForCoerceAndExpand(eltType)) continue; in EmitCall()
/external/llvm-project/mlir/unittests/IR/
DAttributeTest.cpp18 static void testSplat(Type eltType, const EltTy &splatElt) { in testSplat() argument
19 RankedTensorType shape = RankedTensorType::get({2, 1}, eltType); in testSplat()
/external/llvm-project/clang/utils/TableGen/
DClangASTPropertiesEmitter.cpp332 } else if (auto eltType = type.getArrayElementType()) { in validateType() local
333 validateType(eltType, context); in validateType()
481 } else if (auto eltType = type.getArrayElementType()) { in emitBasicReaderWriterMethodSuffix() local
487 eltType.emitCXXValueTypeName(isForRead, out); in emitBasicReaderWriterMethodSuffix()
/external/llvm-project/mlir/lib/Dialect/Vector/
DVectorTransforms.cpp92 Type eltType = tp.getElementType(); in adjustType() local
95 return eltType; in adjustType()
105 return VectorType::get(adjustedShape, eltType); in adjustType()
1136 Type eltType = dstType.getElementType(); in matchAndRewrite() local
1159 VectorType::get(dstType.getShape().drop_front(), eltType); in matchAndRewrite()
1209 VectorType::get(dstType.getShape().drop_front(), eltType); in matchAndRewrite()
1297 Type eltType = resType.getElementType(); in expandIndices() local
1298 Value e = rewriter.create<vector::ExtractOp>(loc, eltType, input, ridx); in expandIndices()
1338 Type eltType = resType.getElementType(); in matchAndRewrite() local
1339 bool isInt = eltType.isa<IntegerType>(); in matchAndRewrite()
[all …]
DVectorOps.cpp133 Type eltType = op.dest().getType(); in verify() local
135 if (!eltType.isIntOrIndexOrFloat()) in verify()
138 if (!eltType.isIntOrIndex()) in verify()
148 if (!eltType.isa<FloatType>()) in verify()
149 return op.emitOpError("no accumulator for type: ") << eltType; in verify()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPULibCalls.cpp876 Type *eltType; in fold_pow() local
882 eltType = opr0->getType(); in fold_pow()
888 eltType = VTy->getElementType(); in fold_pow()
906 Constant *cnval = ConstantFP::get(eltType, 1.0); in fold_pow()
930 Constant *cnval = ConstantFP::get(eltType, 1.0); in fold_pow()
980 cnval = ConstantFP::get(eltType, 1.0); in fold_pow()
998 cnval = ConstantFP::get(eltType, 1.0); in fold_pow()
1031 cnval = ConstantFP::get(eltType, V); in fold_pow()
1126 Type* nTyS = eltType->isDoubleTy() ? B.getInt64Ty() : B.getInt32Ty(); in fold_pow()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULibCalls.cpp881 Type *eltType; in fold_pow() local
887 eltType = opr0->getType(); in fold_pow()
893 eltType = VTy->getElementType(); in fold_pow()
911 Constant *cnval = ConstantFP::get(eltType, 1.0); in fold_pow()
935 Constant *cnval = ConstantFP::get(eltType, 1.0); in fold_pow()
985 cnval = ConstantFP::get(eltType, 1.0); in fold_pow()
1003 cnval = ConstantFP::get(eltType, 1.0); in fold_pow()
1036 cnval = ConstantFP::get(eltType, V); in fold_pow()
1131 Type* nTyS = eltType->isDoubleTy() ? B.getInt64Ty() : B.getInt32Ty(); in fold_pow()
/external/clang/lib/Sema/
DSemaExpr.cpp5788 QualType &eltType) { in breakDownVectorType() argument
5792 eltType = vecType->getElementType(); in breakDownVectorType()
5793 assert(eltType->isScalarType()); in breakDownVectorType()
5802 eltType = type; in breakDownVectorType()

12