Hi Gnanasekar. I'm the maintainer of that second repository and
upstream code owner for LLVM. As the README in the repo states, you
probably want to build upstream LLVM:
"
As of May 2018, the vast majority of these patches are now upstream
and most users wishing to experiment with support for RISC-V in LLVM
projects will likely be best served by building directly from the
upstream repositories. You may prefer to follow this repository if you
want to study how the backend is put together.
"
The only notable patch that's not yet upstreamed is the one that
enables RV64I codegen. This is a fairly trivial patch as the backend
was designed to be parameterisable by the register length (rather than
relying on copy and paste of instruction definitions). The only reason
it hasn't been pushed upstream yet is that I need to set down and
flesh out the unit tests. I expect to do this within the next month.
I hope that helps,
Alex