29 if (
instr.isTerminator())
39 if (
instr.isTerminator())
67 return Phi->hasConstantOrUndefValue();
73 return CB->getIntrinsicID();
78 return Printable([V](raw_ostream &Out) {
V->print(Out); });
87 return Printable([](raw_ostream &Out) { Out <<
"<nullptr>"; });
89 return Printable([BB](raw_ostream &Out) { Out << BB->
getName(); });
91 return Printable([BB](raw_ostream &Out) {
99 return Printable([BB](raw_ostream &Out) { BB->
printAsOperand(Out); });
This file declares a specialization of the GenericSSAContext<X> class template for LLVM IR.
unify loop Fixup each natural loop to have a single exit block
LLVM Basic Block Representation.
const Function * getParent() const
Return the enclosing method, or null if none.
static void appendBlockDefs(SmallVectorImpl< ValueRefT > &defs, BlockT &block)
static bool isConstantOrUndefValuePhi(const InstructionT &Instr)
static void appendBlockTerms(SmallVectorImpl< InstructionT * > &terms, BlockT &block)
static Intrinsic::ID getIntrinsicID(const InstructionT &I)
Printable print(const BlockT *block) const
const BlockT * getDefBlock(ConstValueRefT value) const
Printable printAsOperand(const BlockT *BB) const
Module * getParent()
Get the module that this global value is contained inside of...
int getLocalSlot(const Value *V)
Return the slot number of the specified local value.
void incorporateFunction(const Function &F)
Incorporate the given function.
Simple wrapper around std::function<void(raw_ostream&)>.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
void push_back(const T &Elt)
LLVM Value Representation.
LLVM_ABI void printAsOperand(raw_ostream &O, bool PrintType=true, const Module *M=nullptr) const
Print the name of this Value out to the specified raw_ostream.
LLVM_ABI StringRef getName() const
Return a constant reference to the value's name.
MCInst const & instruction(MCInst const &MCB, size_t Index)
NodeAddr< PhiNode * > Phi
This is an optimization pass for GlobalISel generic memory operations.
decltype(auto) dyn_cast(const From &Val)
dyn_cast<X> - Return the argument parameter cast to the specified type.
decltype(auto) cast(const From &Val)
cast<X> - Return the argument parameter cast to the specified type.