[PATCH] D51844: Allow subclassing ExternalAA

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 9 18:49:12 PDT 2018


arsenm created this revision.
arsenm added a reviewer: chandlerc.
Herald added subscribers: tpr, nhaehnle, wdng, jvesely.

This allows testing AMDGPU alias analysis like any
other alias analysis pass. This fixes the existing
test pointlessly running opt -O3 when it really
 just wants to run the one analysis.

      

Before there was no way to test this using -aa-eval
with opt, since the default constructed pass
is run. The wrapper subclass allows the
default constructor to pass the necessary callback.

The naming is kind of a mess with multiple "Wrapper" passes


https://reviews.llvm.org/D51844

Files:
  include/llvm/Analysis/AliasAnalysis.h
  lib/Analysis/AliasAnalysis.cpp
  lib/Target/AMDGPU/AMDGPU.h
  lib/Target/AMDGPU/AMDGPUAliasAnalysis.cpp
  lib/Target/AMDGPU/AMDGPUAliasAnalysis.h
  lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
  test/CodeGen/AMDGPU/amdgpu-alias-analysis.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51844.164595.patch
Type: text/x-patch
Size: 6148 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180910/65810e6f/attachment.bin>


More information about the llvm-commits mailing list