Displaying 5 results from an estimated 5 matches for "functionpassctor".
2006 Aug 20
2
[LLVMdev] Adding register allocator to LLVM
...Try adding code like this to your Passes.cpp file:
//===---------------------------------------------------------------------===//
///
/// RegAlloc command line options.
///
//===---------------------------------------------------------------------===//
namespace {
cl::opt<RegisterRegAlloc::FunctionPassCtor, false,
RegisterPassParser<RegisterRegAlloc> >
RegAlloc("regalloc",
cl::init(&createChordalRegisterAllocator),
cl::desc("Register allocator to use: (default = chordal)"));
}
All the best,
Fernando
> Hi!
>
> I've did...
2012 Dec 27
0
[LLVMdev] About the MachinePassRegistry
Hi all,
The "Creating new registries" part on the "Writing An LLVM Pass" page
seems unclear.
I copied "llvm/CodeGen/RegAllocRegistry.h" to my project directory,
modify the class name and the FunctionPassCtor type, and add code in the
document to my "machinepass.cpp" file.
But the llc -help doesn't show anything about the registry.
Which part is responsible for making the part ofcl::opt code?
Can anyone show me a complete sample of building a runnable machine
function pass?
Thanks,
Zf
2006 Aug 22
0
[LLVMdev] Adding register allocator to LLVM
...file:
>
>
> //===---------------------------------------------------------------------===//
> ///
> /// RegAlloc command line options.
> ///
>
> //===---------------------------------------------------------------------===//
> namespace {
> cl::opt<RegisterRegAlloc::FunctionPassCtor, false,
> RegisterPassParser<RegisterRegAlloc> >
> RegAlloc("regalloc",
> cl::init(&createChordalRegisterAllocator),
> cl::desc("Register allocator to use: (default = chordal)"));
> }
>
> All the best,
>
> Fern...
2006 Aug 20
0
[LLVMdev] Adding register allocator to LLVM
Hi!
I've did what Jim Laskey wrote but llc didn't reckognize my regalloc option.
So I moved my allocator implementation into seperate folder within CodeGen
and wrote separate makefile for it (like in "Writing an LLVM pass"
tutorial). But when I run "make" from LLVMOBJDIR it doesn't enter the
RegAlloc directory and when linking llc an error like
2006 Aug 03
3
[LLVMdev] Adding register allocator to LLVM
On Thu, 3 Aug 2006, Jim Laskey wrote:
> To force the load/linking of your register allocator into the llc/lli tools,
> add your create function's global declaration to "Passes.h" and add a
> "pseudo" call line to "llvm/Codegen/LinkAllCodegenComponents.h" .
Another note: with this new functionality you should be able to
dynamically load register