Varun Patil via llvm-dev
2016-Oct-17 07:29 UTC
[llvm-dev] Error while compiling registerInfo.cpp
Dear All, I have declared register.td and registerInfo.cpp file but while compiling It is showing as follows *‘LR’ is not a member of ‘llvm::SYMPL’ ‘SP’ is not a member of ‘llvm::SYMPL’‘GPRegsRegClassID’ was not declared in this scope * Following I am attaching register.cpp and .td and .inc files Thanks and Regards Varun -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161017/91a90e28/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: SYMPLRegisterInfo.cpp Type: text/x-c++src Size: 3397 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161017/91a90e28/attachment.cpp> -------------- next part -------------- A non-text attachment was scrubbed... Name: SYMPLRegisterInfo.td Type: application/octet-stream Size: 1110 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161017/91a90e28/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: SYMPLGenRegisterInfo.inc Type: application/octet-stream Size: 11297 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161017/91a90e28/attachment-0001.obj>
Varun Patil via llvm-dev
2016-Oct-20 09:59 UTC
[llvm-dev] Error while compiling registerInfo.cpp
Guys please give me some solution for this problem Thanks and Regards Varun On Mon, Oct 17, 2016 at 12:59 PM, Varun Patil <varun.patil40 at gmail.com> wrote:> Dear All, > > I have declared register.td and registerInfo.cpp file but while compiling > It is showing > as follows > > > > *‘LR’ is not a member of ‘llvm::SYMPL’ ‘SP’ is not a member of > ‘llvm::SYMPL’‘GPRegsRegClassID’ was not declared in this scope * > > Following I am attaching register.cpp and .td and .inc files > > > > Thanks and Regards > Varun >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161020/0f266017/attachment.html>
Francis Visoiu Mistrih via llvm-dev
2016-Oct-20 12:46 UTC
[llvm-dev] Error while compiling registerInfo.cpp
Hello, The 10/17/2016 12:59, Varun Patil via llvm-dev wrote:> *‘LR’ is not a member of ‘llvm::SYMPL’ ‘SP’ is not a member of > ‘llvm::SYMPL’‘GPRegsRegClassID’ was not declared in this scope *You have to include `SYMPLGenRegisterInfo.inc" with the correct macro defined. The macro to use in order to access the enum members `LR` and `SP` is `GET_REGINFO_ENUM`. So, you should have the following:> #define GET_REGINFO_ENUM > #include "SYMPLGenRegisterInfo.inc"I suggest you take a look at the macros guarding the different parts in `GenRegisterInfo.inc`. Cheers, -- Francis Visoiu Mistrih francis at lse.epita.fr LSE | EPITA 2017