| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ConversionChecker.cpp | 42 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; 57 void ConversionChecker::checkPreStmt(const ImplicitCastExpr *Cast, in checkPreStmt() argument 60 if (Cast->getType()->isBooleanType()) in checkPreStmt() 64 if (Cast->getExprLoc().isMacroID()) in checkPreStmt() 69 const Stmt *Parent = PM.getParent(Cast); in checkPreStmt() 83 if (!Cast->IgnoreParenImpCasts()->isEvaluatable(C.getASTContext())) { in checkPreStmt() 84 LossOfSign = isLossOfSign(Cast, C); in checkPreStmt() 85 LossOfPrecision = isLossOfPrecision(Cast, Cast->getType(), C); in checkPreStmt() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | PHITransAddr.cpp | 187 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() 381 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in InsertPHITranslatedSubExpr() local [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/X86/ |
| H A D | X86PartialReduction.cpp | 82 if (auto *Cast = dyn_cast<CastInst>(Op)) { in matchVPDPBUSDPattern() local 83 if (Cast->getParent() == Mul->getParent() && in matchVPDPBUSDPattern() 84 (Cast->getOpcode() == Instruction::SExt || in matchVPDPBUSDPattern() 85 Cast->getOpcode() == Instruction::ZExt) && in matchVPDPBUSDPattern() 86 Cast->getOperand(0)->getType()->getScalarSizeInBits() <= 8) in matchVPDPBUSDPattern() 149 if (auto *Cast = dyn_cast<CastInst>(Op)) { in tryMAddReplacement() local 150 if (Cast->getParent() == Mul->getParent() && in tryMAddReplacement() 151 (Cast->getOpcode() == Instruction::SExt || in tryMAddReplacement() 152 Cast->getOpcode() == Instruction::ZExt) && in tryMAddReplacement() 153 Cast->getOperand(0)->getType()->getScalarSizeInBits() <= 16) in tryMAddReplacement()
|
| H A D | X86LowerAMXType.cpp | 710 void combineCastStore(IntrinsicInst *Cast, StoreInst *ST); 711 bool combineLoadCast(IntrinsicInst *Cast, LoadInst *LD); 923 void X86LowerAMXCast::combineCastStore(IntrinsicInst *Cast, StoreInst *ST) { in combineCastStore() argument 924 Value *Tile = Cast->getOperand(0); in combineCastStore() 950 bool X86LowerAMXCast::combineLoadCast(IntrinsicInst *Cast, LoadInst *LD) { in combineLoadCast() argument 953 Use &U = *(Cast->use_begin()); in combineLoadCast() 973 createAllocaInstAtEntry(Builder, Cast->getParent(), LD->getType()); in combineLoadCast() 977 Builder.SetInsertPoint(Cast); in combineLoadCast() 987 Cast->replaceAllUsesWith(NewInst); in combineLoadCast() 994 for (auto *Cast : Casts) { in combineLdSt() local [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTDC.cpp | 243 if (auto *Cast = dyn_cast<BitCastInst>(Op0)) { in convertICmp() local 245 if (!Cast->getSrcTy()->isFloatTy() && in convertICmp() 246 !Cast->getSrcTy()->isDoubleTy() && in convertICmp() 247 !Cast->getSrcTy()->isFP128Ty()) in convertICmp() 249 Value *V = Cast->getOperand(0); in convertICmp() 261 PossibleJunk.insert(Cast); in convertICmp()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPromoteKernelArguments.cpp | 120 Value *Cast = in promotePointer() local 123 B.CreateAddrSpaceCast(Cast, PT, Twine(Ptr->getName(), ".flat")); in promotePointer() 125 [Cast](Use &U) { return U.getUser() != Cast; }); in promotePointer()
|
| /openbsd-src/gnu/llvm/lldb/source/Core/ |
| H A D | ValueObjectConstResultCast.cpp | 60 ValueObjectConstResultCast::Cast(const CompilerType &compiler_type) { in Cast() function in ValueObjectConstResultCast 61 return m_impl.Cast(compiler_type); in Cast()
|
| H A D | ValueObjectConstResultChild.cpp | 72 ValueObjectConstResultChild::Cast(const CompilerType &compiler_type) { in Cast() function in ValueObjectConstResultChild 73 return m_impl.Cast(compiler_type); in Cast()
|
| H A D | ValueObjectConstResult.cpp | 297 ValueObjectConstResult::Cast(const CompilerType &compiler_type) { in Cast() function in ValueObjectConstResult 298 return m_impl.Cast(compiler_type); in Cast()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | CallPromotionUtils.cpp | 178 auto *Cast = CastInst::CreateBitOrPointerCast(&CB, RetTy, "", InsertBefore); in createRetBitCast() local 180 *RetBitCast = Cast; in createRetBitCast() 184 U->replaceUsesOfWith(&CB, Cast); in createRetBitCast() 511 auto *Cast = CastInst::CreateBitOrPointerCast(Arg, FormalTy, "", &CB); in promoteCall() local 512 CB.setArgOperand(ArgNo, Cast); in promoteCall()
|
| /openbsd-src/gnu/gcc/libcpp/ |
| H A D | ChangeLog | 275 (init_iconv_desc): Cast return value of alloca. 280 (_cpp_interpret_identifier): Cast return value of alloca. 286 (save_registered_pragmas): Cast return value of xmemdup. 289 (do_assert): Cast allocated storage to proper type. 295 * expr.c (CPP_UPLUS): Cast value to type cpp_ttype. 306 (cpp_included): Cast return value of htab_find_with_hash. 309 (read_name_map): Cast return value of alloca. Use XRESIZEVEC. 316 (cpp_init_builtins): Cast of b->value to enum builtin_type. 317 (read_original_directory): Cast return value of alloca. 320 (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype). [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/ |
| H A D | Store.cpp | 251 SVal StoreManager::evalDerivedToBase(SVal Derived, const CastExpr *Cast) { in evalDerivedToBase() argument 254 if (!regionMatchesCXXRecordType(Derived, Cast->getSubExpr()->getType())) in evalDerivedToBase() 259 for (CastExpr::path_const_iterator I = Cast->path_begin(), in evalDerivedToBase() 260 E = Cast->path_end(); in evalDerivedToBase()
|
| H A D | DynamicType.cpp | 86 for (const DynamicCastInfo &Cast : *Lookup) in getDynamicCastInfo() 87 if (Cast.equals(CastFromTy, CastToTy)) in getDynamicCastInfo() 88 return &Cast; in getDynamicCastInfo()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyFixFunctionBitcasts.cpp | 182 Instruction *Cast = in createWrapper() local 184 Cast->insertInto(BB, BB->end()); in createWrapper() 185 ReturnInst::Create(M->getContext(), Cast, BB); in createWrapper()
|
| /openbsd-src/gnu/llvm/lldb/examples/summaries/cocoa/ |
| H A D | Selector.py | 12 return valobj.Cast(valobj.GetType().GetBasicType(
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | ExpandLargeFpConvert.cpp | 370 Value *Cast = Builder.CreateTrunc(Call, Builder.getInt32Ty()); in expandIToFP() local 373 FloatWidth == 128 ? Call : Cast); in expandIToFP() 375 FloatWidth == 128 ? Call : Cast); in expandIToFP() 396 FloatWidth == 128 ? Call : Cast); in expandIToFP() 401 Builder.CreateAdd(FloatWidth == 128 ? Call : Cast, in expandIToFP() 459 FloatWidth == 128 ? Call : Cast, in expandIToFP()
|
| /openbsd-src/gnu/llvm/lldb/include/lldb/Core/ |
| H A D | ValueObjectConstResultCast.h | 54 lldb::ValueObjectSP Cast(const CompilerType &compiler_type) override;
|
| H A D | ValueObjectConstResultImpl.h | 53 lldb::ValueObjectSP Cast(const CompilerType &compiler_type);
|
| H A D | ValueObjectConstResultChild.h | 63 lldb::ValueObjectSP Cast(const CompilerType &compiler_type) override;
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Utils/ |
| H A D | SimplifyIndVar.h | 45 virtual void visitCast(CastInst *Cast) = 0;
|
| /openbsd-src/gnu/llvm/clang/tools/clang-format-vs/ClangFormat/ |
| H A D | RunningDocTableEventsDispatcher.cs | 76 …return _dte.Documents.Cast<Document>().FirstOrDefault(doc => doc.FullName == documentInfo.Moniker); in FindDocumentByCookie()
|
| /openbsd-src/gnu/llvm/clang/include/clang/Analysis/Analyses/ |
| H A D | ThreadSafetyOps.def | 41 TIL_OPCODE_DEF(Cast)
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | SeparateConstOffsetFromGEP.cpp | 688 if (CastInst *Cast = dyn_cast<CastInst>(U)) { in distributeExtsAndCloneChain() local 690 (isa<SExtInst>(Cast) || isa<ZExtInst>(Cast) || isa<TruncInst>(Cast)) && in distributeExtsAndCloneChain() 692 ExtInsts.push_back(Cast); in distributeExtsAndCloneChain()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 332 auto *Cast = dyn_cast<CastInst>(BinOp1->getOperand(0)); in simplifyAssocCastAssoc() local 333 if (!Cast || !Cast->hasOneUse()) in simplifyAssocCastAssoc() 337 auto CastOpcode = Cast->getOpcode(); in simplifyAssocCastAssoc() 346 auto *BinOp2 = dyn_cast<BinaryOperator>(Cast->getOperand(0)); in simplifyAssocCastAssoc() 364 IC.replaceOperand(*Cast, 0, BinOp2->getOperand(0)); in simplifyAssocCastAssoc() 1056 if (auto *Cast = dyn_cast<CastInst>(&I)) in foldOperationIntoSelectOperand() local 1057 return Builder.CreateCast(Cast->getOpcode(), SO, I.getType()); in foldOperationIntoSelectOperand() 1544 if (CastInst *Cast = dyn_cast<CastInst>(Op)) { in Descale() local 1545 if (Cast->getOpcode() == Instruction::SExt) { in Descale() 1547 unsigned SmallSize = Cast->getSrcTy()->getPrimitiveSizeInBits(); in Descale() [all …]
|
| /openbsd-src/gnu/gcc/libdecnumber/ |
| H A D | ChangeLog | 121 * decNumber.c (decStrEq): Cast string contents to unsigned char 126 * decNumber.c (decStrEq): Cast operands to int before calling
|