lizhirui via llvm-dev
2019-Jan-26 11:05 UTC
[llvm-dev] I have a problem about "Writting an LLVM Backend"
I intend to write a new LLVM Backend for my new instruction set,but I notice that the example in the document "Writing an LLVM Backend" is not suitable for up-to-date version"7.0.1". That document is in "docs" directory of LLVM source of up-to-date version and LLVM Website. For example,in section "Target Machine",in "SparcTargetMachine.h",there is "DataLayout","InstrInfo" as class members in class "SparcTargetMachine" but is not in "SparcTargetMachine.h" which is in "LLVM version 7.0.1",and the argument list of the constructor is also different. I don't know how to write a new LLVM Backend for me.Do you have new documents suitable for up-to-date version?or,do you know what version of LLVM is for that documents? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190126/43613c06/attachment.html>
Bruce Hoult via llvm-dev
2019-Jan-26 22:19 UTC
[llvm-dev] I have a problem about "Writting an LLVM Backend"
You can find an almost [1] up to date set of patches used to create a RISC-V backend from scratch at: https://github.com/lowRISC/riscv-llvm [1] hasn't been rebased for about 11 months. On Sat, Jan 26, 2019 at 11:47 AM lizhirui via llvm-dev <llvm-dev at lists.llvm.org> wrote:> > I intend to write a new LLVM Backend for my new instruction set,but I notice that the example in the document “Writing an LLVM Backend” is not suitable for up-to-date version”7.0.1”. > > > > That document is in “docs” directory of LLVM source of up-to-date version and LLVM Website. > > > > For example,in section “Target Machine”,in “SparcTargetMachine.h”,there is “DataLayout”,”InstrInfo” as class members in class “SparcTargetMachine” but is not in “SparcTargetMachine.h” which is in “LLVM version 7.0.1”,and the argument list of the constructor is also different. > > > > I don’t know how to write a new LLVM Backend for me.Do you have new documents suitable for up-to-date version?or,do you know what version of LLVM is for that documents? > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev