ERROR:Registers are not part of Target

Dear All,

I have done all other tablegen but I faced an issue in the
auto-generated XXXGenAsmMatcher.inc file complaining about registers 
not being part of XXX, when it is compiling XXXAsmMatcher.cpp file. 
Why It is showing error can any one please help me