14#ifndef LLVM_IR_REPLACECONSTANT_H
15#define LLVM_IR_REPLACECONSTANT_H
37 Function *RestrictToFunc =
nullptr,
38 bool RemoveDeadConstants =
true,
39 bool IncludeSelf =
false);
This is an optimization pass for GlobalISel generic memory operations.
bool convertUsersOfConstantsToInstructions(ArrayRef< Constant * > Consts, Function *RestrictToFunc=nullptr, bool RemoveDeadConstants=true, bool IncludeSelf=false)
Replace constant expressions users of the given constants with instructions.
ArrayRef(const T &OneElt) -> ArrayRef< T >