Skip to content

Instantly share code, notes, and snippets.

@crabtw
Created November 20, 2019 14:48
Show Gist options
  • Save crabtw/9e9db59359f0574fecec30f8bd6ea213 to your computer and use it in GitHub Desktop.
Save crabtw/9e9db59359f0574fecec30f8bd6ea213 to your computer and use it in GitHub Desktop.
llvm tablegen bugs
class AAA {
AAA a = !cast<AAA>(NAME);
}
foreach _ = [1, 2] in
def : AAA;
multiclass BBB {
def : AAA;
}
defm : BBB;
defm : BBB;
class BBB {
list<int> Val = [10];
}
multiclass AAA<BBB b> {
foreach n = b.Val in
def {
int Val = n;
}
}
def XXX : BBB;
foreach x = [XXX] in
defm : AAA<x>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment