Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TableGen is not parsing list<Register> Defs properly #16

Open
skintigh opened this issue Mar 17, 2014 · 0 comments
Open

TableGen is not parsing list<Register> Defs properly #16

skintigh opened this issue Mar 17, 2014 · 0 comments

Comments

@skintigh
Copy link

A good example is:

def BL {    // Instruction InstTemplate Encoding InstARM XI 
  ...
  string Namespace = "ARM";
  dag OutOperandList = (outs);
  dag InOperandList = (ins bl_target:$func);
  string AsmString = "bl    $func";
  list<dag> Pattern = [(ARMcall tglobaladdr:$func)];
  list<Register> Uses = [SP];
  list<Register> Defs = [LR];
  list<Predicate> Predicates = [IsARM];
  int Size = 4;

Note that LR is not defined in the outs list, but it is an implicit definition. The backend should indicated the VT of LR (i32 in this case) so it can be properly decoded in the SelectionDAG engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant