[llvm] [AA] Change RunEarly to be a Boolean Flag in ExternalAAWrapper (PR #139158)
Princeton Ferro via llvm-commits
llvm-commits at lists.llvm.org
Thu May 8 16:11:05 PDT 2025
================
@@ -90,14 +90,14 @@ class NVPTXExternalAAWrapper : public ExternalAAWrapperPass {
public:
static char ID;
- bool runEarly() override { return true; }
-
NVPTXExternalAAWrapper()
: ExternalAAWrapperPass([](Pass &P, Function &, AAResults &AAR) {
if (auto *WrapperPass =
P.getAnalysisIfAvailable<NVPTXAAWrapperPass>())
AAR.addAAResult(WrapperPass->getResult());
- }) {}
+ }) {
+ RunEarly = true;
----------------
Prince781 wrote:
> which you could hide under an EarlyExternalAA and LateExternalAA wrapper class
What's the intent of doing this? To make it possible to use `isa<>` to determine whether an AA should run early?
https://github.com/llvm/llvm-project/pull/139158
More information about the llvm-commits
mailing list