22 if (Name.starts_with(
"\1"))
23 return Name.substr(1);
30 if (!V->getType()->isPointerTy())
38 for (
auto &Arg :
F.args())
44 for (
auto &
Op :
I.operands())
51 for (
Value *V1 : Values) {
53 for (
Value *V2 : Values) {
57 errs() << NameV1 <<
" and " << NameV2;
59 errs() <<
" are related.\n";
61 errs() <<
" are not related.\n";
Expand Atomic instructions
static void insertIfNamed(SetVector< Value * > &Values, Value *V)
static StringRef getName(Value *V)
This file declares a special form of Alias Analysis called Provenance / Analysis''.
This file implements a set that has insertion order iteration characteristics.
bool related(const Value *A, const Value *B)
void setAA(AAResults *aa)
A manager for alias analyses.
PassT::Result & getResult(IRUnitT &IR, ExtraArgTs... ExtraArgs)
Get the result of an analysis pass for a given IR unit.
A set of analyses that are preserved following a run of a transformation pass.
static PreservedAnalyses all()
Construct a special preserved set that preserves all passes.
A vector that has set insertion semantics.
bool insert(const value_type &X)
Insert a new element into the SetVector.
StringRef - Represent a constant reference to a string, i.e.
LLVM Value Representation.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
DWARFExpression::Operation Op
AnalysisManager< Function > FunctionAnalysisManager
Convenience typedef for the Function analysis manager.
LLVM_ABI PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)