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 "Unresolved bitvar reference" assertion failure #85418

Open
jayfoad opened this issue Mar 15, 2024 · 0 comments
Open

Tablegen "Unresolved bitvar reference" assertion failure #85418

jayfoad opened this issue Mar 15, 2024 · 0 comments
Labels
crash Prefer [crash-on-valid] or [crash-on-invalid] tablegen

Comments

@jayfoad
Copy link
Contributor

jayfoad commented Mar 15, 2024

With this test case:

class A<bit cond> {
  int x = 2;
  bits<16> y;
  let y{3-2} = !cond(cond : x, 1 : 0b00); }
def B : A<1>;

I get:

$ llvm-tblgen crash.td 
llvm-tblgen: /home/jayfoad2/git/llvm-project/llvm/lib/TableGen/Record.cpp:534: virtual llvm::Init *llvm::BitsInit::resolveReferences(llvm::Resolver &) const: Assertion `CachedBitVarResolved && "Unresolved bitvar reference"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
@jayfoad jayfoad added tablegen crash Prefer [crash-on-valid] or [crash-on-invalid] labels Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash Prefer [crash-on-valid] or [crash-on-invalid] tablegen
Projects
None yet
Development

No branches or pull requests

1 participant