Home
last modified time | relevance | path

Searched refs:CastTy (Results 1 – 17 of 17) sorted by relevance

/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSValBuilder.cpp573 if (CastTy.isNull()) in evalCast()
576 CastTy = Context.getCanonicalType(CastTy); in evalCast()
582 if (CastTy == OriginalTy) in evalCast()
657 if (CastTy->isBooleanType()) in evalCastSubKind()
668 if (Loc::isLocType(CastTy)) in evalCastSubKind()
678 if (CastTy->isBooleanType()) in evalCastSubKind()
692 if (CastTy->isPointerType() || CastTy->isReferenceType()) in evalCastSubKind()
697 if (Loc::isLocType(CastTy)) in evalCastSubKind()
780 if (CastTy->isPointerType() && !CastTy->isVoidPointerType()) { in evalCastSubKind()
807 if (CastTy->isPointerType() || CastTy->isReferenceType()) { in evalCastSubKind()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSValBuilder.h77 SVal evalCastKind(Loc V, QualType CastTy, QualType OriginalTy);
78 SVal evalCastKind(NonLoc V, QualType CastTy, QualType OriginalTy);
79 SVal evalCastSubKind(loc::ConcreteInt V, QualType CastTy,
82 SVal evalCastSubKind(loc::MemRegionVal V, QualType CastTy,
84 SVal evalCastSubKind(nonloc::CompoundVal V, QualType CastTy,
86 SVal evalCastSubKind(nonloc::ConcreteInt V, QualType CastTy,
88 SVal evalCastSubKind(nonloc::LazyCompoundVal V, QualType CastTy,
90 SVal evalCastSubKind(nonloc::LocAsInteger V, QualType CastTy,
92 SVal evalCastSubKind(nonloc::SymbolVal V, QualType CastTy,
94 SVal evalCastSubKind(nonloc::PointerToMember V, QualType CastTy,
[all …]
H A DSMTConstraintManager.h158 QualType CastTy = SC->getType(); in REGISTER_TRAIT_WITH_PROGRAMSTATE() local
160 if (CastTy->isVoidType()) in REGISTER_TRAIT_WITH_PROGRAMSTATE()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerHelper.h157 void bitcastSrc(MachineInstr &MI, LLT CastTy, unsigned OpIdx);
161 void bitcastDst(MachineInstr &MI, LLT CastTy, unsigned OpIdx);
354 LLT CastTy);
358 LLT CastTy);
/freebsd-13.1/contrib/llvm-project/clang/lib/Parse/
H A DParseExpr.cpp955 ParsedType CastTy; in ParseCastExpression() local
2250 ParsedType &CastTy, in ParseExprAfterUnaryExprOrTypeTrait() argument
2305 false, CastTy, RParenLoc); in ParseExprAfterUnaryExprOrTypeTrait()
2433 ParsedType CastTy; in ParseUnaryExprOrTypeTraitExpression() local
2437 CastTy, in ParseUnaryExprOrTypeTraitExpression()
2795 bool isTypeCast, ParsedType &CastTy, in ParseParenExpression() argument
2808 CastTy = nullptr; in ParseParenExpression()
2987 DeclaratorInfo, CastTy, in ParseParenExpression()
3015 CastTy = Ty.get(); in ParseParenExpression()
3029 PreferredType.enterTypeCast(Tok.getLocation(), CastTy.get()); in ParseParenExpression()
[all …]
H A DParseExprCXX.cpp3824 ParsedType &CastTy, in ParseCXXAmbiguousParenExpression() argument
3832 CastTy = nullptr; in ParseCXXAmbiguousParenExpression()
3943 DeclaratorInfo, CastTy, in ParseCXXAmbiguousParenExpression()
H A DParseDecl.cpp7252 ParsedType CastTy; in ParseTypeofSpecifier() local
7255 ParseExprAfterUnaryExprOrTypeTrait(OpTok, isCastExpr, CastTy, CastRange)); in ParseTypeofSpecifier()
7266 if (!CastTy) { in ParseTypeofSpecifier()
7275 DiagID, CastTy, in ParseTypeofSpecifier()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalizerHelper.cpp2690 unsigned NewNumElts = CastTy.isVector() ? CastTy.getNumElements() : 1; in bitcastExtractVectorElt()
2693 LLT NewEltTy = CastTy.isVector() ? CastTy.getElementType() : CastTy; in bitcastExtractVectorElt()
2765 if (CastTy.isVector()) { in bitcastExtractVectorElt()
2832 LLT NewEltTy = CastTy.isVector() ? CastTy.getElementType() : CastTy; in bitcastInsertVectorElt()
2836 unsigned NewNumElts = CastTy.isVector() ? CastTy.getNumElements() : 1; in bitcastInsertVectorElt()
2857 if (CastTy.isVector()) { in bitcastInsertVectorElt()
2868 if (CastTy.isVector()) { in bitcastInsertVectorElt()
3075 bitcastDst(MI, CastTy, 0); in bitcast()
3076 MMO.setType(CastTy); in bitcast()
3091 bitcastSrc(MI, CastTy, 0); in bitcast()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp1674 QualType ValTy, QualType CastTy, in castValueToType() argument
1676 assert(!CGF.getContext().getTypeSizeInChars(CastTy).isZero() && in castValueToType()
1680 llvm::Type *LLVMCastTy = CGF.ConvertTypeForMem(CastTy); in castValueToType()
1681 if (ValTy == CastTy) in castValueToType()
1684 CGF.getContext().getTypeSizeInChars(CastTy)) in castValueToType()
1686 if (CastTy->isIntegerType() && ValTy->isIntegerType()) in castValueToType()
1689 Address CastItem = CGF.CreateMemTemp(CastTy); in castValueToType()
1695 return CGF.EmitLoadOfScalar(CastItem, /*Volatile=*/false, CastTy, Loc, in castValueToType()
1722 QualType CastTy = CGF.getContext().getIntTypeForBitwidth( in createRuntimeShuffleFunction() local
1724 llvm::Value *ElemCast = castValueToType(CGF, Elem, ElemType, CastTy, Loc); in createRuntimeShuffleFunction()
[all …]
H A DCGObjCGNU.cpp2591 llvm::Type *CastTy = llvm::StructType::get(IdTy, IdTy); in GenerateMessageSendSuper() local
2593 llvm::PointerType::getUnqual(CastTy)); in GenerateMessageSendSuper()
2595 ReceiverClass = Builder.CreateStructGEP(CastTy, ReceiverClass, 1); in GenerateMessageSendSuper()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h1808 ParsedType &CastTy,
1836 ParsedType &CastTy,
1840 ParenParseOption &ExprType, ParsedType &CastTy,
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp356 Type *CastTy = IntToPtr->getDestTy(); in simplifyIntToPtrRoundTripCast() local
358 CastTy->getPointerAddressSpace() == in simplifyIntToPtrRoundTripCast()
362 return Builder.CreateBitCast(PtrToInt->getOperand(0), CastTy); in simplifyIntToPtrRoundTripCast()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelLowering.cpp3625 Type *CastTy = Builder.getIntNTy(SZ); in emitStoreConditional() local
3632 Addr = Builder.CreateBitCast(Addr, CastTy->getPointerTo(AS)); in emitStoreConditional()
3633 Val = Builder.CreateBitCast(Val, CastTy); in emitStoreConditional()
H A DHexagonISelLoweringHVX.cpp359 MVT CastTy = tyVector(Vec.getValueType().getSimpleVT(), ElemTy); in opCastElem() local
360 return DAG.getBitcast(CastTy, Vec); in opCastElem()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp589 Type *CastTy = LoadTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(LoadTy) : LoadTy; in FoldReinterpretLoadFromConstPtr() local
590 Res = FoldBitCast(Res, CastTy, DL); in FoldReinterpretLoadFromConstPtr()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp806 bool AMDGPUTargetLowering::isLoadBitCastBeneficial(EVT LoadTy, EVT CastTy, in isLoadBitCastBeneficial() argument
810 assert(LoadTy.getSizeInBits() == CastTy.getSizeInBits()); in isLoadBitCastBeneficial()
816 unsigned CastScalarSize = CastTy.getScalarSizeInBits(); in isLoadBitCastBeneficial()
823 CastTy, MMO, &Fast) && in isLoadBitCastBeneficial()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaChecking.cpp8964 QualType CastTy = llvm::StringSwitch<QualType>(Name) in shouldNotPrintDirectly() local
8972 if (!CastTy.isNull()) in shouldNotPrintDirectly()
8973 return std::make_pair(CastTy, Name); in shouldNotPrintDirectly()
9154 QualType CastTy; in checkFormatExpr() local
9155 std::tie(CastTy, CastTyName) = shouldNotPrintDirectly(S.Context, IntendedTy, E); in checkFormatExpr()
9156 if (!CastTy.isNull()) { in checkFormatExpr()
9161 AT.matchesType(S.Context, CastTy)) in checkFormatExpr()
9163 IntendedTy = CastTy; in checkFormatExpr()