[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
================
@@ -462,6 +464,16 @@ MetadataStreamerMsgPackV4::getHSAKernelProps(const MachineFunction &MF,
const SIMachineFunctionInfo &MFI = *MF.getInfo<SIMachineFunctionInfo>();
const Function &F = MF.getFunction();
+ auto GetMCExprValue = [&MF](const MCExpr *Value) {
+ int64_t Val;
+ if (!Value->evaluateAsAbsolute(Val)) {
+ MCContext &Ctx = MF.getContext();
+ Ctx.reportError(SMLoc(), "Could not resolve MCExpr when required.");
----------------
arsenm wrote:
Missing test that hits this? Can this message be more specific?
https://github.com/llvm/llvm-project/pull/88257
More information about the llvm-commits
mailing list