[llvm-dev] Error while compiling registerInfo.cpp

Francis Visoiu Mistrih via llvm-dev llvm-dev at lists.llvm.org
Thu Oct 20 05:46:24 PDT 2016


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


More information about the llvm-dev mailing list