Created
November 20, 2019 14:48
-
-
Save crabtw/9e9db59359f0574fecec30f8bd6ea213 to your computer and use it in GitHub Desktop.
llvm tablegen bugs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AAA { | |
AAA a = !cast<AAA>(NAME); | |
} | |
foreach _ = [1, 2] in | |
def : AAA; | |
multiclass BBB { | |
def : AAA; | |
} | |
defm : BBB; | |
defm : BBB; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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