Home
last modified time | relevance | path

Searched refs:Cast (Results 1 – 25 of 527) sorted by relevance

12345678910>>...22

/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DConversionChecker.cpp42 void checkPreStmt(const ImplicitCastExpr *Cast, CheckerContext &C) const;
47 bool isLossOfPrecision(const ImplicitCastExpr *Cast, QualType DestType,
50 bool isLossOfSign(const ImplicitCastExpr *Cast, CheckerContext &C) const;
56 void ConversionChecker::checkPreStmt(const ImplicitCastExpr *Cast, in checkPreStmt() argument
60 if (!isa<DeclRefExpr>(Cast->IgnoreParenImpCasts())) in checkPreStmt()
64 if (Cast->getExprLoc().isMacroID()) in checkPreStmt()
69 const Stmt *Parent = PM.getParent(Cast); in checkPreStmt()
80 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt()
81 LossOfPrecision = isLossOfPrecision(Cast, Cast->getType(), C); in checkPreStmt()
84 LossOfPrecision = isLossOfPrecision(Cast, B->getLHS()->getType(), C); in checkPreStmt()
[all …]
H A DValistChecker.cpp171 if (const auto *Cast = dyn_cast<CastExpr>(E)) { in getVAListAsRegion() local
172 QualType Ty = Cast->getType(); in getVAListAsRegion()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DPHITransAddr.cpp187 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in PHITranslateSubExpr() local
188 if (!isSafeToSpeculativelyExecute(Cast)) return nullptr; in PHITranslateSubExpr()
189 Value *PHIIn = PHITranslateSubExpr(Cast->getOperand(0), CurBB, PredBB, DT); in PHITranslateSubExpr()
191 if (PHIIn == Cast->getOperand(0)) in PHITranslateSubExpr()
192 return Cast; in PHITranslateSubExpr()
198 return AddAsInput(ConstantExpr::getCast(Cast->getOpcode(), in PHITranslateSubExpr()
199 C, Cast->getType())); in PHITranslateSubExpr()
205 if (CastI->getOpcode() == Cast->getOpcode() && in PHITranslateSubExpr()
206 CastI->getType() == Cast->getType() && in PHITranslateSubExpr()
380 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in InsertPHITranslatedSubExpr() local
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp247 if (auto *Cast = dyn_cast<BitCastInst>(Op0)) { in convertICmp() local
249 if (!Cast->getSrcTy()->isFloatTy() && in convertICmp()
250 !Cast->getSrcTy()->isDoubleTy() && in convertICmp()
251 !Cast->getSrcTy()->isFP128Ty()) in convertICmp()
253 Value *V = Cast->getOperand(0); in convertICmp()
265 PossibleJunk.insert(Cast); in convertICmp()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DCallPromotionUtils.cpp178 auto *Cast = CastInst::CreateBitOrPointerCast(&CB, RetTy, "", InsertBefore); in createRetBitCast() local
180 *RetBitCast = Cast; in createRetBitCast()
184 U->replaceUsesOfWith(&CB, Cast); in createRetBitCast()
484 auto *Cast = CastInst::CreateBitOrPointerCast(Arg, FormalTy, "", &CB); in promoteCall() local
485 CB.setArgOperand(ArgNo, Cast); in promoteCall()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp1941 auto *Cast = dyn_cast<BitCastInst>((UI++)->getUser()); in replacePrepare() local
1942 if (!Cast || Cast->getType() != Fn->getType()) in replacePrepare()
1946 Cast->replaceAllUsesWith(Fn); in replacePrepare()
1947 Cast->eraseFromParent(); in replacePrepare()
1956 while (auto *Cast = dyn_cast<BitCastInst>(CastFn)) { in replacePrepare() local
1957 if (!Cast->use_empty()) in replacePrepare()
1959 CastFn = Cast->getOperand(0); in replacePrepare()
1960 Cast->eraseFromParent(); in replacePrepare()
1984 auto *Cast = dyn_cast<BitCastInst>((UI++)->getUser()); in replacePrepare() local
1985 if (!Cast || Cast->getType() != Fn->getType()) continue; in replacePrepare()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp103 if (auto *Cast = dyn_cast<CastInst>(Op)) { in tryMAddReplacement() local
104 if (Cast->getParent() == Mul->getParent() && in tryMAddReplacement()
105 (Cast->getOpcode() == Instruction::SExt || in tryMAddReplacement()
106 Cast->getOpcode() == Instruction::ZExt) && in tryMAddReplacement()
107 Cast->getOperand(0)->getType()->getScalarSizeInBits() <= 16) in tryMAddReplacement()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DStore.cpp249 SVal StoreManager::evalDerivedToBase(SVal Derived, const CastExpr *Cast) { in evalDerivedToBase() argument
252 if (!regionMatchesCXXRecordType(Derived, Cast->getSubExpr()->getType())) in evalDerivedToBase()
257 for (CastExpr::path_const_iterator I = Cast->path_begin(), in evalDerivedToBase()
258 E = Cast->path_end(); in evalDerivedToBase()
H A DDynamicType.cpp86 for (const DynamicCastInfo &Cast : *Lookup) in getDynamicCastInfo()
87 if (Cast.equals(CastFromTy, CastToTy)) in getDynamicCastInfo()
88 return &Cast; in getDynamicCastInfo()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFixFunctionBitcasts.cpp190 Instruction *Cast = in createWrapper() local
192 BB->getInstList().push_back(Cast); in createWrapper()
193 ReturnInst::Create(M->getContext(), Cast, BB); in createWrapper()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp312 auto *Cast = dyn_cast<CastInst>(BinOp1->getOperand(0)); in simplifyAssocCastAssoc() local
313 if (!Cast || !Cast->hasOneUse()) in simplifyAssocCastAssoc()
317 auto CastOpcode = Cast->getOpcode(); in simplifyAssocCastAssoc()
326 auto *BinOp2 = dyn_cast<BinaryOperator>(Cast->getOperand(0)); in simplifyAssocCastAssoc()
344 IC.replaceOperand(*Cast, 0, BinOp2->getOperand(0)); in simplifyAssocCastAssoc()
932 if (auto *Cast = dyn_cast<CastInst>(&I)) in foldOperationIntoSelectOperand() local
933 return Builder.CreateCast(Cast->getOpcode(), SO, I.getType()); in foldOperationIntoSelectOperand()
1433 if (CastInst *Cast = dyn_cast<CastInst>(Op)) { in Descale() local
1434 if (Cast->getOpcode() == Instruction::SExt) { in Descale()
1436 unsigned SmallSize = Cast->getSrcTy()->getPrimitiveSizeInBits(); in Descale()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/
H A DChangeLog153 * lib/krb5/ticket.c: Cast krb5_error_code to int to avoid warning.
155 * lib/krb5/scache.c: Cast krb5_error_code to int to avoid warning.
157 * lib/krb5/principal.c: Cast enum to int to avoid warning.
159 * lib/krb5/pkinit.c: Cast krb5_error_code to int to avoid warning.
161 * lib/krb5/pac.c: Cast size_t to unsigned long to avoid warning.
163 * lib/krb5/error_string.c: Cast krb5_error_code to int to avoid
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DIndVarSimplify.cpp511 static void visitIVCast(CastInst *Cast, WideIVInfo &WI, in visitIVCast() argument
514 bool IsSigned = Cast->getOpcode() == Instruction::SExt; in visitIVCast()
515 if (!IsSigned && Cast->getOpcode() != Instruction::ZExt) in visitIVCast()
518 Type *Ty = Cast->getType(); in visitIVCast()
520 if (!Cast->getModule()->getDataLayout().isLegalInteger(Width)) in visitIVCast()
540 Cast->getOperand(0)->getType())) { in visitIVCast()
585 void visitCast(CastInst *Cast) override { visitIVCast(Cast, WI, SE, TTI); } in visitCast() argument
H A DSeparateConstOffsetFromGEP.cpp689 if (CastInst *Cast = dyn_cast<CastInst>(U)) { in distributeExtsAndCloneChain() local
691 (isa<SExtInst>(Cast) || isa<ZExtInst>(Cast) || isa<TruncInst>(Cast)) && in distributeExtsAndCloneChain()
693 ExtInsts.push_back(Cast); in distributeExtsAndCloneChain()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/Utils/
H A DSimplifyIndVar.h46 virtual void visitCast(CastInst *Cast) = 0;
/netbsd-src/external/gpl2/gmake/dist/glob/
H A DChangeLog74 * glob.c (glob): Cast away const on assignment of pattern to dirname.
75 Cast the return type of __alloca() for traditional C compilers.
129 (glob): Cast __alloca(); on SunOS4 it uses the default return type
/netbsd-src/external/apache2/llvm/dist/clang/tools/clang-format-vs/ClangFormat/
H A DRunningDocTableEventsDispatcher.cs76 …return _dte.Documents.Cast<Document>().FirstOrDefault(doc => doc.FullName == documentInfo.Moniker); in FindDocumentByCookie()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Analysis/Analyses/
H A DThreadSafetyOps.def41 TIL_OPCODE_DEF(Cast)
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DThreadSafetyCommon.cpp188 if (const auto *CE = dyn_cast<til::Cast>(E)) { in translateAttrExpr()
326 if (const auto *C = dyn_cast<til::Cast>(E)) in hasAnyPointerType()
407 return new (Arena) til::Cast(til::CAST_objToPtr, E); in translateCXXMemberCallExpr()
422 return new (Arena) til::Cast(til::CAST_objToPtr, E); in translateCXXOperatorCallExpr()
589 return new (Arena) til::Cast(til::CAST_none, E0); in translateCastExpr()
H A DConsumed.cpp502 void VisitCastExpr(const CastExpr *Cast);
756 void ConsumedStmtVisitor::VisitCastExpr(const CastExpr *Cast) { in VisitCastExpr() argument
757 forwardInfo(Cast->getSubExpr(), Cast); in VisitCastExpr()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h803 if (const auto *Cast = dyn_cast<SExtInst>(Val)) { in minRequiredElementSize() local
805 return Cast->getSrcTy()->getScalarSizeInBits() - 1; in minRequiredElementSize()
808 if (const auto *Cast = dyn_cast<ZExtInst>(Val)) { in minRequiredElementSize() local
810 return Cast->getSrcTy()->getScalarSizeInBits(); in minRequiredElementSize()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DStackColoring.cpp973 BitCastInst *Cast = new BitCastInst(Inst, From->getType()); in remapInstructions() local
974 Cast->insertAfter(Inst); in remapInstructions()
975 Inst = Cast; in remapInstructions()
/netbsd-src/external/apache2/llvm/dist/llvm/utils/
H A DlldbDataFormatters.py120 return storage.Cast(underlying_type)
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A DChangeLog-1998115 * c-lex.c (UNGETC): Cast first argument of comma expression to void.
117 * config/mips/mips.c (mips_asm_file_end): Cast the result of
126 * dwarf2out.c (initial_return_save): Cast -1 to unsigned before
132 (output_asm_insn): Cast a char to unsigned char when used as an
135 * gcse.c (compute_pre_ppinout): Cast -1 to SBITMAP_ELT_TYPE when
140 * recog.c (preprocess_constraints): Cast a char to unsigned char
152 with ATTRIBUTE_UNUSED. Cast variable `start_written' to size_t
155 * stor-layout.c (layout_decl): Cast maximum_field_alignment to
158 (layout_record): Cast record_align to int when comparing against a
160 (layout_type): Cast TYPE_ALIGN() to int when comparing against a
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DStore.h157 SVal evalDerivedToBase(SVal Derived, const CastExpr *Cast);

12345678910>>...22