LLVM: include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/PrintInstructionCount.h Source File (original) (raw)
Go to the documentation of this file.
1#ifndef LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_PRINTINSTRUCTIONCOUNT_H
2#define LLVM_TRANSFORMS_VECTORIZE_SANDBOXVECTORIZER_PASSES_PRINTINSTRUCTIONCOUNT_H
3
6
8
9
10
11
13public:
16 outs() << "InstructionCount: " << llvm::size(R) << "\n";
17 return false;
18 }
19};
20
21}
22
23#endif
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
bool runOnRegion(Region &R, const Analyses &A) final
\Returns true if it modifies R.
Definition PrintInstructionCount.h:15
PrintInstructionCount()
Definition PrintInstructionCount.h:14
RegionPass(StringRef Name)
Name can't contain any spaces or start with '-'.
The main job of the Region is to point to new instructions generated by vectorization passes.
auto size(R &&Range, std::enable_if_t< std::is_base_of< std::random_access_iterator_tag, typename std::iterator_traits< decltype(Range.begin())>::iterator_category >::value, void > *=nullptr)
Get the size of a range.
LLVM_ABI raw_fd_ostream & outs()
This returns a reference to a raw_fd_ostream for standard output.