Home
last modified time | relevance | path

Searched refs:ComplexType (Results 1 – 25 of 61) sorted by relevance

123

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprComplex.cpp38 static const ComplexType *getComplexType(QualType type) { in getComplexType()
40 if (const ComplexType *comp = dyn_cast<ComplexType>(type)) { in getComplexType()
43 return cast<ComplexType>(cast<AtomicType>(type)->getValueType()); in getComplexType()
248 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType(); in VisitCXXScalarValueInitExpr()
254 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType(); in VisitImplicitValueInitExpr()
333 if (auto *CT = Ty->getAs<ComplexType>()) { in getPromotionType()
521 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
522 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
539 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitScalarToComplexCast()
765 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall()
[all …]
H A DABIInfo.cpp129 if (const ComplexType *CT = Ty->getAs<ComplexType>()) { in isHomogeneousAggregate()
H A DSwiftCallingConv.cpp86 } else if (auto complexType = type->getAs<ComplexType>()) { in addTypedData()
829 if (isa<ComplexType>(type)) { in classifyType()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DPPC.cpp18 CharUnits EltSize, const ComplexType *CTy) { in complexTempStructure()
226 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in getParamTypeAlignment()
254 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) { in EmitVAArg()
374 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in getParamTypeAlignment()
439 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) { in EmitVAArg()
734 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in getParamTypeAlignment()
971 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) { in EmitVAArg()
H A DLoongArch.cpp77 QualType EltTy = RetTy->castAs<ComplexType>()->getElementType(); in computeInfo()
135 if (auto CTy = Ty->getAs<ComplexType>()) { in detectFARsEligibleStructHelper()
330 QualType EltTy = Ty->castAs<ComplexType>()->getElementType(); in classifyArgumentType()
H A DRISCV.cpp83 QualType EltTy = RetTy->castAs<ComplexType>()->getElementType(); in computeInfo()
141 if (auto CTy = Ty->getAs<ComplexType>()) { in detectFPCCEligibleStructHelper()
381 QualType EltTy = Ty->castAs<ComplexType>()->getElementType(); in classifyArgumentType()
H A DCSKY.cpp108 QualType EltTy = Ty->castAs<ComplexType>()->getElementType(); in classifyArgumentType()
H A DX86.cpp389 if (const ComplexType *CTy = Ty->getAs<ComplexType>()) in is32Or64BitBasicType()
536 if (const ComplexType *CT = RetTy->getAs<ComplexType>()) { in classifyReturnType()
1943 if (const ComplexType *CT = Ty->getAs<ComplexType>()) { in classify()
2934 } else if (IsRegCall && FI.getReturnType()->getAs<ComplexType>() && in computeInfo()
2936 ->getAs<ComplexType>() in computeInfo()
H A DARM.cpp469 if (const ComplexType *CT = Ty->getAs<ComplexType>()) in isIntegerLikeType()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A Darm_mve_defs.td218 // ComplexType is used to represent any more complicated type: vectors,
222 class ComplexType<dag spec_>: Type { dag spec = spec_; }
224 // Operators you can use in the ComplexType spec dag. These are an intermediate
277 class VecOf<Type t>: ComplexType<(CTO_Vec t)>;
285 class NarrowedVecOf<Type t, Type v>: ComplexType<(CTO_Vec t, v)>;
289 class PredOf<Type t>: ComplexType<(CTO_Pred t)>;
294 def Scalar: ComplexType<(CTO_Parameter)>;
301 class MultiVector<int n>: ComplexType<(CTO_Tuple<n> Vector)>;
305 class Ptr<Type t>: ComplexType<(CTO_Pointer<0> t)>;
306 class CPtr<Type t>: ComplexType<(CTO_Pointer<1> t)>;
[all …]
H A DTypeNodes.td55 def ComplexType : TypeNode<Type>;
H A Darm_cde.td22 class Float<Type t>: ComplexType<(CTO_CopyKind t, f32)>;
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DCanonicalType.h418 struct CanProxyAdaptor<ComplexType> : public CanProxyBase<ComplexType> {
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DCOFFYAML.h98 COFF::SymbolComplexType ComplexType = COFF::IMAGE_SYM_DTYPE_NULL; member
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DType.cpp678 if (const auto *CT = dyn_cast<ComplexType>(CanonicalType)) in isComplexType()
698 const ComplexType *Type::getAsComplexIntegerType() const { in getAsComplexIntegerType()
699 if (const auto *Complex = getAs<ComplexType>()) in getAsComplexIntegerType()
967 QualType VisitComplexType(const ComplexType *T) { in TRIVIAL_TYPE_CLASS()
2253 if (const auto *CT = dyn_cast<ComplexType>(CanonicalType)) in isFloatingType()
2293 return isa<ComplexType>(CanonicalType) || isBitIntType(); in isArithmeticType()
2318 } else if (const auto *CT = dyn_cast<ComplexType>(T)) { in getScalarTypeKind()
4525 return Cache::get(cast<ComplexType>(T)->getElementType()); in computeCachedProperties()
4613 return computeTypeLinkageInfo(cast<ComplexType>(T)->getElementType()); in computeTypeLinkageInfo()
/freebsd/contrib/llvm-project/clang/lib/Support/
H A DRISCVVIntrinsicUtils.cpp472 StringRef ComplexType = PrototypeDescriptorStr.slice(1, Idx); in parsePrototypeDescriptor() local
477 auto ComplexTT = ComplexType.split(":"); in parsePrototypeDescriptor()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DCompiler.cpp572 CE->getType()->getAs<ComplexType>()->getElementType(); in VisitCastExpr()
1010 assert(classifyPrim(LHSType->getAs<ComplexType>()->getElementType()) == in VisitComplexBinOp()
1011 classifyPrim(RHSType->getAs<ComplexType>()->getElementType())); in VisitComplexBinOp()
1013 classifyPrim(LHSType->getAs<ComplexType>()->getElementType()); in VisitComplexBinOp()
1022 QualType ElemQT = RHSType->getAs<ComplexType>()->getElementType(); in VisitComplexBinOp()
1249 if (const auto *ComplexTy = E->getType()->getAs<ComplexType>()) { in VisitImplicitValueInitExpr()
1475 if (const auto *ComplexTy = QT->getAs<ComplexType>()) { in visitInitList()
2681 if (const auto *CT = Ty->getAs<ComplexType>()) { in VisitCXXScalarValueInitExpr()
H A DProgram.cpp431 if (const auto *CT = Ty->getAs<ComplexType>()) { in createDescriptor()
H A DPointer.h324 if (const auto *CT = getFieldDesc()->getType()->getAs<ComplexType>()) in getType()
H A DDescriptor.cpp381 if (const auto *CT = T->getAs<ComplexType>()) in getElemQualType()
H A DPointer.cpp489 if (const auto *CT = Ty->getAs<ComplexType>()) { in toRValue()
H A DCompiler.h340 QualType ElemType = T->getAs<ComplexType>()->getElementType(); in classifyComplexElementType()
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DUSRGeneration.cpp909 if (const ComplexType *CT = T->getAs<ComplexType>()) { in VisitType()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExpr.cpp1101 QualType fpTy = ComplexTy->castAs<ComplexType>()->getElementType(); in handleComplexIntegerToFloatConversion()
1125 bool LongerIsComplex = isa<ComplexType>(LongerType.getCanonicalType()); in handleComplexFloatConversion()
1130 if (isa<ComplexType>(ShorterType.getCanonicalType())) { in handleComplexFloatConversion()
1135 LongerType = LongerType->castAs<ComplexType>()->getElementType(); in handleComplexFloatConversion()
1256 auto *LHSComplex = LHSType->getAs<ComplexType>(); in unsupportedTypeConversion()
1257 auto *RHSComplex = RHSType->getAs<ComplexType>(); in unsupportedTypeConversion()
1346 const ComplexType *LHSComplexInt = LHSType->getAsComplexIntegerType(); in handleComplexIntConversion()
1347 const ComplexType *RHSComplexInt = RHSType->getAsComplexIntegerType(); in handleComplexIntConversion()
1364 QualType ComplexType = S.Context.getComplexType(ScalarType); in handleComplexIntConversion() local
1365 RHS = S.ImpCastExprToType(RHS.get(), ComplexType, in handleComplexIntConversion()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DCOFFEmitter.cpp114 Sym.Header.Type |= Sym.ComplexType << COFF::SCT_COMPLEX_TYPE_SHIFT; in parseSymbols()

123