You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running bpftrace on LLVM 14, an issue related to bpftrace generating invalid LLVM IR were encountered (see #2228, #2222 and #2296). Furthermore, other failing tests in LLVM 14 also generate invalid LLVM IR, implying this could be a more widespread issue in the codegen.
As suggested by @fbs in #2222, a verifier pass detecting LLVM IR in bpftrace output could be added to all tests to ensure these issues are identified and fixed both in the present code and in the future.
The text was updated successfully, but these errors were encountered:
Locally, I found myself using this snippet to ensure all debug builds, tests or not, run through the verifier first. This has so far saved me hours as I work on codegen for new features.
Thank you for the suggestion @BurntBrunch, I implemented a solution in the linked PR by calling VerifierPass directly and doing output redirection, using verifyModule is a simpler solution.
When running bpftrace on LLVM 14, an issue related to bpftrace generating invalid LLVM IR were encountered (see #2228, #2222 and #2296). Furthermore, other failing tests in LLVM 14 also generate invalid LLVM IR, implying this could be a more widespread issue in the codegen.
As suggested by @fbs in #2222, a verifier pass detecting LLVM IR in bpftrace output could be added to all tests to ensure these issues are identified and fixed both in the present code and in the future.
The text was updated successfully, but these errors were encountered: