[llvm] MCExpr-ify SIProgramInfo (PR #88257)
Janek van Oirschot via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 08:06:22 PDT 2024
================
@@ -462,6 +463,12 @@ MetadataStreamerMsgPackV4::getHSAKernelProps(const MachineFunction &MF,
const SIMachineFunctionInfo &MFI = *MF.getInfo<SIMachineFunctionInfo>();
const Function &F = MF.getFunction();
+ auto getMCExprValue = [](const MCExpr *Value) {
+ int64_t Val;
+ Value->evaluateAsAbsolute(Val);
----------------
JanekvO wrote:
Now errors if it cannot resolve; aim to remove this helper when consumers of `SIProgramInfo` allow MCExprs directly.
https://github.com/llvm/llvm-project/pull/88257
More information about the llvm-commits
mailing list