Home
last modified time | relevance | path

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

123456

/NextBSD/contrib/llvm/lib/Target/NVPTX/
HDNVPTXFavorNonGenericAddrSpaces.cpp125 Operator *Cast = dyn_cast<Operator>(V); in isEliminableAddrSpaceCast() local
126 if (Cast == nullptr || Cast->getOpcode() != Instruction::AddrSpaceCast) in isEliminableAddrSpaceCast()
129 Value *Src = Cast->getOperand(0); in isEliminableAddrSpaceCast()
131 PointerType *DestTy = cast<PointerType>(Cast->getType()); in isEliminableAddrSpaceCast()
154 Operator *Cast = cast<Operator>(NewOperand); in hoistAddrSpaceCastFromGEP() local
164 GEP->getSourceElementType(), Cast->getOperand(0), Indices, in hoistAddrSpaceCastFromGEP()
176 GEP->getSourceElementType(), cast<Constant>(Cast->getOperand(0)), in hoistAddrSpaceCastFromGEP()
191 Operator *Cast = cast<Operator>(NewOperand); in hoistAddrSpaceCastFromBitCast() local
198 Value *Src = Cast->getOperand(0); in hoistAddrSpaceCastFromBitCast()
/NextBSD/contrib/llvm/lib/Analysis/
HDPHITransAddr.cpp190 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in PHITranslateSubExpr() local
191 if (!isSafeToSpeculativelyExecute(Cast)) return nullptr; in PHITranslateSubExpr()
192 Value *PHIIn = PHITranslateSubExpr(Cast->getOperand(0), CurBB, PredBB, DT); in PHITranslateSubExpr()
194 if (PHIIn == Cast->getOperand(0)) in PHITranslateSubExpr()
195 return Cast; in PHITranslateSubExpr()
201 return AddAsInput(ConstantExpr::getCast(Cast->getOpcode(), in PHITranslateSubExpr()
202 C, Cast->getType())); in PHITranslateSubExpr()
208 if (CastI->getOpcode() == Cast->getOpcode() && in PHITranslateSubExpr()
209 CastI->getType() == Cast->getType() && in PHITranslateSubExpr()
383 if (CastInst *Cast = dyn_cast<CastInst>(Inst)) { in InsertPHITranslatedSubExpr() local
[all …]
HDConstantFolding.cpp499 Instruction::CastOps Cast = Instruction::BitCast; in ConstantFoldLoadThroughBitcast() local
503 Cast = Instruction::IntToPtr; in ConstantFoldLoadThroughBitcast()
505 Cast = Instruction::PtrToInt; in ConstantFoldLoadThroughBitcast()
507 if (CastInst::castIsValid(Cast, C, DestTy)) in ConstantFoldLoadThroughBitcast()
508 return ConstantExpr::getCast(Cast, C, DestTy); in ConstantFoldLoadThroughBitcast()
/NextBSD/contrib/gcclibs/libcpp/
HDChangeLog275 (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 …]
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
HDStore.cpp235 SVal StoreManager::evalDerivedToBase(SVal Derived, const CastExpr *Cast) { in evalDerivedToBase() argument
238 if (!regionMatchesCXXRecordType(Derived, Cast->getSubExpr()->getType())) in evalDerivedToBase()
243 for (CastExpr::path_const_iterator I = Cast->path_begin(), in evalDerivedToBase()
244 E = Cast->path_end(); in evalDerivedToBase()
/NextBSD/contrib/llvm/include/llvm/Transforms/Utils/
HDSimplifyIndVar.h55 virtual void visitCast(CastInst *Cast) = 0;
/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDSeparateConstOffsetFromGEP.cpp573 if (CastInst *Cast = dyn_cast<CastInst>(U)) { in distributeExtsAndCloneChain() local
574 assert((isa<SExtInst>(Cast) || isa<ZExtInst>(Cast)) && in distributeExtsAndCloneChain()
576 ExtInsts.push_back(Cast); in distributeExtsAndCloneChain()
HDIndVarSimplify.cpp818 static void visitIVCast(CastInst *Cast, WideIVInfo &WI, ScalarEvolution *SE, in visitIVCast() argument
820 bool IsSigned = Cast->getOpcode() == Instruction::SExt; in visitIVCast()
821 if (!IsSigned && Cast->getOpcode() != Instruction::ZExt) in visitIVCast()
824 Type *Ty = Cast->getType(); in visitIVCast()
826 if (!Cast->getModule()->getDataLayout().isLegalInteger(Width)) in visitIVCast()
838 Cast->getOperand(0)->getType())) { in visitIVCast()
1374 void visitCast(CastInst *Cast) override { visitIVCast(Cast, WI, SE, TTI); } in visitCast() argument
/NextBSD/crypto/heimdal/
HDChangeLog153 * 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
/NextBSD/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/
HDThreadSafetyOps.def42 TIL_OPCODE_DEF(Cast)
/NextBSD/contrib/llvm/lib/Transforms/Utils/
HDSimplifyIndVar.cpp499 CastInst *Cast = dyn_cast<CastInst>(UseOper.first); in simplifyUsers() local
500 if (V && Cast) { in simplifyUsers()
501 V->visitCast(Cast); in simplifyUsers()
/NextBSD/contrib/gcclibs/libdecnumber/
HDChangeLog121 * decNumber.c (decStrEq): Cast string contents to unsigned char
126 * decNumber.c (decStrEq): Cast operands to int before calling
/NextBSD/contrib/llvm/lib/CodeGen/
HDStackColoring.cpp488 BitCastInst *Cast = new BitCastInst(Inst, From->getType()); in remapInstructions() local
489 Cast->insertAfter(Inst); in remapInstructions()
490 Inst = Cast; in remapInstructions()
/NextBSD/contrib/llvm/tools/clang/lib/Analysis/
HDThreadSafetyCommon.cpp191 if (auto *CE = dyn_cast_or_null<til::Cast>(E)) { in translateAttrExpr()
323 if (auto *C = dyn_cast<til::Cast>(E)) in hasCppPointerType()
391 return new (Arena) til::Cast(til::CAST_objToPtr, E); in translateCXXMemberCallExpr()
407 return new (Arena) til::Cast(til::CAST_objToPtr, E); in translateCXXOperatorCallExpr()
578 return new (Arena) til::Cast(til::CAST_none, E0); in translateCastExpr()
HDConsumed.cpp493 void VisitCastExpr(const CastExpr *Cast);
759 void ConsumedStmtVisitor::VisitCastExpr(const CastExpr *Cast) { in VisitCastExpr() argument
760 forwardInfo(Cast->getSubExpr(), Cast); in VisitCastExpr()
/NextBSD/contrib/gcclibs/libiberty/
HDChangeLog.gcc4323 * pex-unix.c (writeerr): Cast write result to void.
HDChangeLog301 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
310 * pexecute.c (pexecute): Cast string litrals to char *.
311 * regex.c (re_comp): Cast a call to gettext() to char *.
403 (exchange): Cast return value of malloc().
431 * spaces.c (spaces): Cast return value of malloc().
436 * xstrdup.c (xstrdup): Cast return value of memcpy().
439 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
537 sizeof(char *) of that amount. Cast result to char *.
1212 (regcomp): Cast i to int.
1694 (pexecute): Cast away constness when assigning *errmsg_arg.
[all …]
/NextBSD/contrib/llvm/tools/lldb/include/lldb/API/
HDSBValue.h163 Cast (lldb::SBType type);
/NextBSD/contrib/binutils/libiberty/
HDChangeLog148 * pex-unix.c (writeerr): Cast write result to void.
208 (win32_spawn): Cast alloca return to (char**).
499 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
508 * pexecute.c (pexecute): Cast string litrals to char *.
509 * regex.c (re_comp): Cast a call to gettext() to char *.
601 (exchange): Cast return value of malloc().
629 * spaces.c (spaces): Cast return value of malloc().
634 * xstrdup.c (xstrdup): Cast return value of memcpy().
637 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
735 sizeof(char *) of that amount. Cast result to char *.
[all …]
/NextBSD/contrib/gcc/
HDChangeLog-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 …]
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstructionCombining.cpp1105 if (CastInst *Cast = dyn_cast<CastInst>(Op)) { in Descale() local
1106 if (Cast->getOpcode() == Instruction::SExt) { in Descale()
1108 unsigned SmallSize = Cast->getSrcTy()->getPrimitiveSizeInBits(); in Descale()
1123 Parent = std::make_pair(Cast, 0); in Descale()
1128 if (Cast->getOpcode() == Instruction::Trunc) { in Descale()
1139 unsigned LargeSize = Cast->getSrcTy()->getPrimitiveSizeInBits(); in Descale()
1140 Parent = std::make_pair(Cast, 0); in Descale()
1142 if (logScale + 1 == (int32_t)Cast->getType()->getPrimitiveSizeInBits()) in Descale()
/NextBSD/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
HDStore.h118 SVal evalDerivedToBase(SVal Derived, const CastExpr *Cast);
/NextBSD/contrib/groff/src/devices/xditview/
HDChangeLog276 (canonicalize_name): Cast argument to isdigit() to unsigned char.
290 * Dvi.c (SetGeometry): Cast XtMakeGeometryRequest arguments.
292 * draw.c (DrawPolygon, DrawFilledPolygon): Cast Xtfree argument.
/NextBSD/lib/libc/db/
HDchangelog50 Cast allocation pointers to shut up old compilers.
/NextBSD/contrib/llvm/tools/lldb/include/lldb/Core/
HDScalar.h104 Cast (Scalar::Type type);

123456