[llvm] MCExpr-ify SIProgramInfo (PR #88257)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 22 12:13:12 PDT 2024
================
@@ -134,6 +135,15 @@ void AMDGPUAsmPrinter::initTargetStreamer(Module &M) {
getTargetStreamer()->getPALMetadata()->readFromIR(M);
}
+uint64_t AMDGPUAsmPrinter::getMCExprValue(const MCExpr *Value, MCContext &Ctx) {
+ int64_t Val;
+ if (!Value->evaluateAsAbsolute(Val)) {
+ Ctx.reportError(SMLoc(), "Could not resolve MCExpr when required.");
----------------
arsenm wrote:
Missing test that hits this?
https://github.com/llvm/llvm-project/pull/88257
More information about the llvm-commits
mailing list