llvm-6502/include/llvm/IR
Chandler Carruth d793a053ad [PM] Switch analysis managers to be threaded through the run methods
rather than the constructors of passes.

This simplifies the APIs of passes significantly and removes an error
prone pattern where the *same* manager had to be given to every
different layer. With the new API the analysis managers themselves will
have to be cross connected with proxy analyses that allow a pass at one
layer to query for the analysis manager of another layer. The proxy will
both expose a handle to the other layer's manager and it will provide
the invalidation hooks to ensure things remain consistent across layers.
Finally, the outer-most analysis manager has to be passed to the run
method of the outer-most pass manager. The rest of the propagation is
automatic.

I've used SFINAE again to allow passes to completely disregard the
analysis manager if they don't need or want to care. This helps keep
simple things simple for users of the new pass manager.

Also, the system specifically supports passing a null pointer into the
outer-most run method if your pass pipeline neither needs nor wants to
deal with analyses. I find this of dubious utility as while some
*passes* don't care about analysis, I'm not sure there are any
real-world users of the pass manager itself that need to avoid even
creating an analysis manager. But it is easy to support, so there we go.

Finally I renamed the module proxy for the function analysis manager to
the more verbose but less confusing name of
FunctionAnalysisManagerModuleProxy. I hate this name, but I have no idea
what else to name these things. I'm expecting in the fullness of time to
potentially have the complete cross product of types at the proxy layer:

{Module,SCC,Function,Loop,Region}AnalysisManager{Module,SCC,Function,Loop,Region}Proxy

(except for XAnalysisManagerXProxy which doesn't make any sense)

This should make it somewhat easier to do the next phases which is to
build the upward proxy and get its invalidation correct, as well as to
make the invalidation within the Module -> Function mapping pass be more
fine grained so as to invalidate fewer fuction analyses.

After all of the proxy analyses are done and the invalidation working,
I'll finally be able to start working on the next two fun fronts: how to
adapt an existing pass to work in both the legacy pass world and the new
one, and building the SCC, Loop, and Region counterparts. Fun times!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195400 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-22 00:43:29 +00:00
..
Argument.h
Attributes.h Explicitly request unsigned enum types when desired 2013-09-23 23:26:57 +00:00
BasicBlock.h
CallingConv.h [Stackmap] Add AnyReg calling convention support for patchpoint intrinsic. 2013-11-08 23:28:16 +00:00
CMakeLists.txt
Constant.h
Constants.h Fix spacing, forward declare order. 2013-11-18 02:51:33 +00:00
DataLayout.h MemCpyOptimizer: Use max legal int size instead of pointer size 2013-09-16 22:43:16 +00:00
DerivedTypes.h
Function.h Implement function prefix data as an IR feature. 2013-09-16 01:08:15 +00:00
GlobalAlias.h Add a GlobalAlias::isValidLinkage to reduce code duplication. 2013-10-09 16:07:32 +00:00
GlobalValue.h Remove linkonce_odr_auto_hide. 2013-11-01 17:09:14 +00:00
GlobalVariable.h Clarify that GlobalVariables definitions must have an initializer. 2013-10-29 13:44:11 +00:00
InlineAsm.h Explicitly request unsigned enum types when desired 2013-09-23 23:26:57 +00:00
InstrTypes.h Revert "Remove isCastable since nothing uses it now" 2013-07-30 22:02:14 +00:00
Instruction.def Add addrspacecast instruction. 2013-11-15 01:34:59 +00:00
Instruction.h
Instructions.h Add addrspacecast instruction. 2013-11-15 01:34:59 +00:00
IntrinsicInst.h
Intrinsics.h Enable variable arguments support for intrinsics. 2013-10-31 17:18:11 +00:00
Intrinsics.td Add experimental stackmap intrinsics to definition file and documenation. 2013-10-31 17:18:14 +00:00
IntrinsicsAArch64.td Implemented Neon scalar by element intrinsics. 2013-11-21 07:37:04 +00:00
IntrinsicsARM.td Export intrinsics:__builtin_arm_{dmb,dsb} to frontend 2013-11-12 19:57:43 +00:00
IntrinsicsHexagon.td
IntrinsicsMips.td [mips][msa] Correct definition of bins[lr] and CHECK-DAG-ize related tests 2013-10-30 15:45:42 +00:00
IntrinsicsNVVM.td
IntrinsicsPowerPC.td
IntrinsicsR600.td
IntrinsicsX86.td Add AVX512 unmasked FMA intrinsics and support. 2013-11-15 17:01:14 +00:00
IntrinsicsXCore.td remove executable permission from IntrinsicsXCore.td 2013-08-01 17:17:59 +00:00
IRBuilder.h Expose the fence instruction via the C API. 2013-11-20 00:07:49 +00:00
LegacyPassManager.h Move the old pass manager infrastructure into a legacy namespace and 2013-11-09 12:26:54 +00:00
LegacyPassManagers.h Move the old pass manager infrastructure into a legacy namespace and 2013-11-09 12:26:54 +00:00
LLVMContext.h
MDBuilder.h
Metadata.h TBAA: add isTBAAVtableAccess to MDNode so clients can call the function 2013-09-06 22:47:05 +00:00
Module.h Fixed doxygen comment to match Module.cpp 2013-10-23 21:25:44 +00:00
OperandTraits.h
Operator.h Fix comment to match what the assert actually enforces 2013-09-12 01:07:54 +00:00
PassManager.h [PM] Switch analysis managers to be threaded through the run methods 2013-11-22 00:43:29 +00:00
SymbolTableListTraits.h
Type.h TypeFinder: prefer iterative algorithm to keep stack usage low. 2013-10-16 04:10:06 +00:00
TypeBuilder.h
TypeFinder.h
Use.h
User.h
Value.h Add a new helper method to Value to strip in-bounds constant offsets of 2013-08-22 11:25:11 +00:00
ValueSymbolTable.h