I wanted to write new register allocation pass. To start with, I have used graph coloring based allocation sample file[Gcra.cpp]. I am tring build the LLVM after dropping this file into lib/CodeGen, and adding references to createGcra to include/lib/CodeGen/Passes.h and include/lib/CodeGen/LinkAllCodeGenComponents.h.
I am getting following error while building the LLVM.
Gcra.cpp (6.02 KB)
Passes.h (21.2 KB)
LinkAllCodegenComponents.h (2.08 KB)