[llvm] X86: Stop using MachineFunction in getPointerRegClass (PR #156880)
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 9 07:53:34 PDT 2025
================
@@ -230,6 +230,12 @@ let RecomputePerFunction = 1 in {
"!Subtarget->hasSSE41()">;
def ImportCallOptimizationEnabled : Predicate<"MF->getFunction().getParent()->getModuleFlag(\"import-call-optimization\")">;
def ImportCallOptimizationDisabled : Predicate<"!MF->getFunction().getParent()->getModuleFlag(\"import-call-optimization\")">;
+
+ def IsWin64CCFunc : Predicate<"MF->getFunction().getCallingConv() == CallingConv::Win64">;
----------------
rnk wrote:
Is this correct when targeting Windows OS? I'm pretty sure in that context, we use the win64 convention, but we model it as the platform C calling convention. Maybe that doesn't matter for the purpose you're using the predicate for, but the predicate may be misleading to the reader.
https://github.com/llvm/llvm-project/pull/156880
More information about the llvm-commits
mailing list