reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Instruction.def
  196 HANDLE_CAST_INST(50, AddrSpaceCast, AddrSpaceCastInst)  // addrspace cast

References

include/llvm/Analysis/PtrUseVisitor.h
  259   void visitAddrSpaceCastInst(AddrSpaceCastInst &ASC) {
include/llvm/IR/InstVisitor.h
  190   RetTy visitAddrSpaceCastInst(AddrSpaceCastInst &I) { DELEGATE(CastInst);}
include/llvm/IR/Instructions.h
 5203   AddrSpaceCastInst *cloneImpl() const;
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   77     return isa_impl<To, From>::doit(Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
lib/Analysis/Loads.cpp
  110   if (const AddrSpaceCastInst *ASC = dyn_cast<AddrSpaceCastInst>(V))
  110   if (const AddrSpaceCastInst *ASC = dyn_cast<AddrSpaceCastInst>(V))
lib/CodeGen/CodeGenPrepare.cpp
 1144   if (auto *ASC = dyn_cast<AddrSpaceCastInst>(CI)) {
 1144   if (auto *ASC = dyn_cast<AddrSpaceCastInst>(CI)) {
lib/IR/Instructions.cpp
 2764   case AddrSpaceCast: return new AddrSpaceCastInst (S, Ty, Name, InsertBefore);
 2786   case AddrSpaceCast: return new AddrSpaceCastInst (S, Ty, Name, InsertAtEnd);
 4220 AddrSpaceCastInst *AddrSpaceCastInst::cloneImpl() const {
 4221   return new AddrSpaceCastInst(getOperand(0), getType());
lib/IR/Verifier.cpp
  449   void visitAddrSpaceCastInst(AddrSpaceCastInst &I);
 2775 void Verifier::visitAddrSpaceCastInst(AddrSpaceCastInst &I) {
lib/Target/AMDGPU/AMDGPUAnnotateKernelFeatures.cpp
   92 static bool castRequiresQueuePtr(const AddrSpaceCastInst *ASC) {
  307       if (const AddrSpaceCastInst *ASC = dyn_cast<AddrSpaceCastInst>(&I)) {
  307       if (const AddrSpaceCastInst *ASC = dyn_cast<AddrSpaceCastInst>(&I)) {
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  848       if (isa<AddrSpaceCastInst>(V))
lib/Target/NVPTX/NVPTXLowerAlloca.cpp
   76         auto NewASCToLocal = new AddrSpaceCastInst(allocaInst, LocalAddrTy, "");
   79             new AddrSpaceCastInst(NewASCToLocal, GenericAddrTy, "");
lib/Target/NVPTX/NVPTXLowerArgs.cpp
  170   Value *ArgInParam = new AddrSpaceCastInst(
  194   Instruction *PtrInGlobal = new AddrSpaceCastInst(
  198   Value *PtrInGeneric = new AddrSpaceCastInst(PtrInGlobal, Ptr->getType(),
lib/Transforms/InstCombine/InstCombineCasts.cpp
 1789         (!isa<AddrSpaceCastInst>(CI) ||
 2310       return new AddrSpaceCastInst(Src, DestTy);
 2471 Instruction *InstCombiner::visitAddrSpaceCast(AddrSpaceCastInst &CI) {
 2488     return new AddrSpaceCastInst(NewBitCast, CI.getType());
lib/Transforms/InstCombine/InstCombineInternal.h
  421   Instruction *visitAddrSpaceCast(AddrSpaceCastInst &CI);
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
   79       if (isa<BitCastInst>(I) || isa<AddrSpaceCastInst>(I)) {
lib/Transforms/InstCombine/InstructionCombining.cpp
 1995           return new AddrSpaceCastInst(Builder.Insert(Res), GEPType);
 2027             return new AddrSpaceCastInst(NewGEP, GEPType);
 2139   if (auto *ASC = dyn_cast<AddrSpaceCastInst>(PtrOp)) {
 2139   if (auto *ASC = dyn_cast<AddrSpaceCastInst>(PtrOp)) {
 2179         return new AddrSpaceCastInst(NGEP, GEPType);
 2210           return new AddrSpaceCastInst(SrcOp, GEPType);
 2229           return new AddrSpaceCastInst(NGEP, GEPType);
 2405                  isa<AddrSpaceCastInst>(I)) {
lib/Transforms/Scalar/InferAddressSpaces.cpp
  383     } else if (auto *ASC = dyn_cast<AddrSpaceCastInst>(&I)) {
  383     } else if (auto *ASC = dyn_cast<AddrSpaceCastInst>(&I)) {
  986         if (AddrSpaceCastInst *ASC = dyn_cast<AddrSpaceCastInst>(CurUser)) {
  986         if (AddrSpaceCastInst *ASC = dyn_cast<AddrSpaceCastInst>(CurUser)) {
 1003           if (U == V && isa<AddrSpaceCastInst>(V))
 1009           U.set(new AddrSpaceCastInst(NewV, V->getType(), "", &*InsertPos));
lib/Transforms/Scalar/MemCpyOptimizer.cpp
  824     if (isa<BitCastInst>(U) || isa<AddrSpaceCastInst>(U)) {
lib/Transforms/Scalar/SROA.cpp
  716   void visitAddrSpaceCastInst(AddrSpaceCastInst &ASC) {
  979                  !isa<SelectInst>(I) && !isa<AddrSpaceCastInst>(I)) {
 3439   bool visitAddrSpaceCastInst(AddrSpaceCastInst &ASC) {