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
Maybe Matching Threads
- [LLVMdev] About instrumenting/rewriting X86 instructions
- [LLVMdev] About instrumenting/rewriting X86 instructions
- [PATCH 1/1] SYSLINUX/COMBOOT: Abstract searchdir and fix the opendir call
- [PATCH 3/4] x86/emulator: properly handle lzcnt and tzcnt
- summary[["r.squared"]] gives strange results