LLVM 20.0.0git
AMDGPU.h
Go to the documentation of this file.
1//===-- AMDGPU.h - MachineFunction passes hw codegen --------------*- C++ -*-=//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7/// \file
8//===----------------------------------------------------------------------===//
9
10#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPU_H
11#define LLVM_LIB_TARGET_AMDGPU_AMDGPU_H
12
14#include "llvm/IR/PassManager.h"
15#include "llvm/Pass.h"
18
19namespace llvm {
20
21class AMDGPUTargetMachine;
22class GCNTargetMachine;
23class TargetMachine;
24
25// GlobalISel passes
35
36// SI Passes
54
67
68struct AMDGPUSimplifyLibCallsPass : PassInfoMixin<AMDGPUSimplifyLibCallsPass> {
71};
72
74 : PassInfoMixin<AMDGPUImageIntrinsicOptimizerPass> {
77
78private:
79 TargetMachine &TM;
80};
81
82struct AMDGPUUseNativeCallsPass : PassInfoMixin<AMDGPUUseNativeCallsPass> {
84};
85
86class SILowerI1CopiesPass : public PassInfoMixin<SILowerI1CopiesPass> {
87public:
91};
92
94
96
102
103// DPP/Iterative option enables the atomic optimizer with given strategy
104// whereas None disables the atomic optimizer.
105enum class ScanOptions { DPP, Iterative, None };
106FunctionPass *createAMDGPUAtomicOptimizerPass(ScanOptions ScanStrategy);
108extern char &AMDGPUAtomicOptimizerID;
109
113
117
121
123 : PassInfoMixin<AMDGPUPromoteKernelArgumentsPass> {
125};
126
130
132 : PassInfoMixin<AMDGPULowerKernelAttributesPass> {
134};
135
138
139struct AMDGPULowerModuleLDSPass : PassInfoMixin<AMDGPULowerModuleLDSPass> {
142
144};
145
148
150 : PassInfoMixin<AMDGPULowerBufferFatPointersPass> {
153
154private:
155 const TargetMachine &TM;
156};
157
159extern char &AMDGPUReserveWWMRegsID;
160
162extern char &AMDGPURewriteOutArgumentsID;
163
165extern char &GCNDPPCombineLegacyID;
166
168extern char &SIFoldOperandsLegacyID;
169
171extern char &SIPeepholeSDWALegacyID;
172
175
177extern char &SIFixSGPRCopiesLegacyID;
178
180extern char &SIFixVGPRCopiesID;
181
183extern char &SILowerWWMCopiesID;
184
186extern char &SILowerI1CopiesLegacyID;
187
190
192extern char &AMDGPURegBankSelectID;
193
195extern char &AMDGPURegBankLegalizeID;
196
198extern char &AMDGPUMarkLastScratchLoadID;
199
201extern char &SILowerSGPRSpillsLegacyID;
202
205
207extern char &SIWholeQuadModeID;
208
210extern char &SILowerControlFlowID;
211
213extern char &SIPreEmitPeepholeID;
214
216extern char &SILateBranchLoweringPassID;
217
219extern char &SIOptimizeExecMaskingID;
220
223
226
229
231extern char &GCNRegPressurePrinterID;
232
233// Passes common to R600 and SI
236extern char &AMDGPUPromoteAllocaID;
237
241
242struct AMDGPUPromoteAllocaPass : PassInfoMixin<AMDGPUPromoteAllocaPass> {
245
246private:
247 TargetMachine &TM;
248};
249
251 : PassInfoMixin<AMDGPUPromoteAllocaToVectorPass> {
254
255private:
256 TargetMachine &TM;
257};
258
259struct AMDGPUAtomicOptimizerPass : PassInfoMixin<AMDGPUAtomicOptimizerPass> {
261 : TM(TM), ScanImpl(ScanImpl) {}
263
264private:
265 TargetMachine &TM;
266 ScanOptions ScanImpl;
267};
268
271ModulePass *createAMDGPUAlwaysInlinePass(bool GlobalOpt = true);
272
273struct AMDGPUAlwaysInlinePass : PassInfoMixin<AMDGPUAlwaysInlinePass> {
274 AMDGPUAlwaysInlinePass(bool GlobalOpt = true) : GlobalOpt(GlobalOpt) {}
276
277private:
278 bool GlobalOpt;
279};
280
285
286struct AMDGPUSwLowerLDSPass : PassInfoMixin<AMDGPUSwLowerLDSPass> {
290};
291
293 : public PassInfoMixin<AMDGPUCodeGenPreparePass> {
294private:
295 TargetMachine &TM;
296
297public:
300};
301
303 : public PassInfoMixin<AMDGPULateCodeGenPreparePass> {
304private:
305 const GCNTargetMachine &TM;
306
307public:
310};
311
313 : public PassInfoMixin<AMDGPULowerKernelArgumentsPass> {
314private:
315 TargetMachine &TM;
316
317public:
320};
321
323 bool IsClosedWorld = false;
324};
325
326class AMDGPUAttributorPass : public PassInfoMixin<AMDGPUAttributorPass> {
327private:
328 TargetMachine &TM;
329
331
332public:
334 : TM(TM), Options(Options) {};
335 PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
336};
337
339 : public PassInfoMixin<AMDGPUAnnotateUniformValuesPass> {
340public:
343};
344
346
350
353
355 : PassInfoMixin<AMDGPUPrintfRuntimeBindingPass> {
357};
358
361extern char &AMDGPUUnifyMetadataID;
362
363struct AMDGPUUnifyMetadataPass : PassInfoMixin<AMDGPUUnifyMetadataPass> {
365};
366
369
372
375
377extern char &AMDGPUCodeGenPrepareID;
378
381
384
388
390 : public PassInfoMixin<AMDGPURewriteUndefForPHIPass> {
391public:
394};
395
397 : public PassInfoMixin<SIAnnotateControlFlowPass> {
398private:
399 const AMDGPUTargetMachine &TM;
400
401public:
404};
405
408
410extern char &SIMemoryLegalizerID;
411
413extern char &SIModeRegisterID;
414
416extern char &AMDGPUInsertDelayAluID;
417
419extern char &SIInsertHardClausesID;
420
422extern char &SIInsertWaitcntsID;
423
425extern char &SIFormMemoryClausesID;
426
428extern char &SIPostRABundlerID;
429
431extern char &GCNCreateVOPDID;
432
435
440
442
446
448extern char &GCNNSAReassignID;
449
451extern char &GCNPreRALongBranchRegID;
452
454extern char &GCNPreRAOptimizationsID;
455
458
460extern char &GCNRewritePartialRegUsesID;
461
462namespace AMDGPU {
470
471static inline bool addrspacesMayAlias(unsigned AS1, unsigned AS2) {
472 static_assert(AMDGPUAS::MAX_AMDGPU_ADDRESS <= 9, "Addr space out of range");
473
475 return true;
476
477 // This array is indexed by address space value enum elements 0 ... to 9
478 // clang-format off
479 static const bool ASAliasRules[10][10] = {
480 /* Flat Global Region Group Constant Private Const32 BufFatPtr BufRsrc BufStrdPtr */
481 /* Flat */ {true, true, false, true, true, true, true, true, true, true},
482 /* Global */ {true, true, false, false, true, false, true, true, true, true},
483 /* Region */ {false, false, true, false, false, false, false, false, false, false},
484 /* Group */ {true, false, false, true, false, false, false, false, false, false},
485 /* Constant */ {true, true, false, false, false, false, true, true, true, true},
486 /* Private */ {true, false, false, false, false, true, false, false, false, false},
487 /* Constant 32-bit */ {true, true, false, false, true, false, false, true, true, true},
488 /* Buffer Fat Ptr */ {true, true, false, false, true, false, true, true, true, true},
489 /* Buffer Resource */ {true, true, false, false, true, false, true, true, true, true},
490 /* Buffer Strided Ptr */ {true, true, false, false, true, false, true, true, true, true},
491 };
492 // clang-format on
493
494 return ASAliasRules[AS1][AS2];
495}
496
497}
498
499} // End namespace llvm
500
501#endif
AMDGPU address space definition.
This header defines various interfaces for pass management in LLVM.
#define F(x, y, z)
Definition: MD5.cpp:55
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
AMDGPUAttributorPass(TargetMachine &TM, AMDGPUAttributorOptions Options={})
Definition: AMDGPU.h:333
PreservedAnalyses run(Function &, FunctionAnalysisManager &)
AMDGPUCodeGenPreparePass(TargetMachine &TM)
Definition: AMDGPU.h:298
AMDGPULateCodeGenPreparePass(const GCNTargetMachine &TM)
Definition: AMDGPU.h:308
PreservedAnalyses run(Function &, FunctionAnalysisManager &)
AMDGPULowerKernelArgumentsPass(TargetMachine &TM)
Definition: AMDGPU.h:318
PreservedAnalyses run(Function &, FunctionAnalysisManager &)
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
A container for analyses that lazily runs them and caches their results.
Definition: PassManager.h:253
FunctionPass class - This class is used to implement most global optimizations.
Definition: Pass.h:310
ImmutablePass class - This class is used to provide information that does not need to be run.
Definition: Pass.h:281
ModulePass class - This class is used to implement unstructured interprocedural optimizations and ana...
Definition: Pass.h:251
A Module instance is used to store all the information related to an LLVM module.
Definition: Module.h:65
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
Definition: PassRegistry.h:37
Pass interface - Implemented by all 'passes'.
Definition: Pass.h:94
A set of analyses that are preserved following a run of a transformation pass.
Definition: Analysis.h:111
SIAnnotateControlFlowPass(const AMDGPUTargetMachine &TM)
Definition: AMDGPU.h:402
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM)
Primary interface to the complete machine description for the target machine.
Definition: TargetMachine.h:77
static bool addrspacesMayAlias(unsigned AS1, unsigned AS2)
Definition: AMDGPU.h:471
@ TI_SCRATCH_RSRC_DWORD1
Definition: AMDGPU.h:466
@ TI_SCRATCH_RSRC_DWORD3
Definition: AMDGPU.h:468
@ TI_SCRATCH_RSRC_DWORD0
Definition: AMDGPU.h:465
@ TI_SCRATCH_RSRC_DWORD2
Definition: AMDGPU.h:467
@ TI_CONSTDATA_START
Definition: AMDGPU.h:464
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
void initializeSIFormMemoryClausesPass(PassRegistry &)
ScanOptions
Definition: AMDGPU.h:105
ImmutablePass * createAMDGPUAAWrapperPass()
char & SIAnnotateControlFlowLegacyPassID
FunctionPass * createAMDGPUSetWavePriorityPass()
char & AMDGPUCtorDtorLoweringLegacyPassID
void initializeGCNCreateVOPDPass(PassRegistry &)
ModulePass * createAMDGPUOpenCLEnqueuedBlockLoweringPass()
char & AMDGPUAnnotateKernelFeaturesID
char & GCNPreRAOptimizationsID
void initializeGCNPreRAOptimizationsPass(PassRegistry &)
void initializeGCNRewritePartialRegUsesPass(llvm::PassRegistry &)
char & SIMemoryLegalizerID
void initializeAMDGPUAttributorLegacyPass(PassRegistry &)
char & SIPostRABundlerID
FunctionPass * createSIAnnotateControlFlowLegacyPass()
Create the annotation pass.
FunctionPass * createSIModeRegisterPass()
void initializeAMDGPUAAWrapperPassPass(PassRegistry &)
void initializeSIShrinkInstructionsLegacyPass(PassRegistry &)
ModulePass * createAMDGPULowerBufferFatPointersPass()
char & SIShrinkInstructionsLegacyID
void initializeSIModeRegisterPass(PassRegistry &)
ModulePass * createAMDGPUCtorDtorLoweringLegacyPass()
char & AMDGPUImageIntrinsicOptimizerID
ModulePass * createAMDGPUSwLowerLDSLegacyPass(const AMDGPUTargetMachine *TM=nullptr)
void initializeAMDGPURewriteUndefForPHILegacyPass(PassRegistry &)
char & AMDGPUPromoteKernelArgumentsID
FunctionPass * createAMDGPUPreLegalizeCombiner(bool IsOptNone)
char & GCNRewritePartialRegUsesID
FunctionPass * createAMDGPUPostLegalizeCombiner(bool IsOptNone)
void initializeAMDGPUSwLowerLDSLegacyPass(PassRegistry &)
FunctionPass * createAMDGPURewriteOutArgumentsPass()
void initializeGCNPreRALongBranchRegPass(PassRegistry &)
void initializeSILowerSGPRSpillsLegacyPass(PassRegistry &)
char & AMDGPUResourceUsageAnalysisID
FunctionPass * createSIWholeQuadModePass()
void initializeAMDGPUDAGToDAGISelLegacyPass(PassRegistry &)
FunctionPass * createSILoadStoreOptimizerLegacyPass()
ModulePass * createAMDGPULowerKernelAttributesPass()
ModulePass * createAMDGPUAlwaysInlinePass(bool GlobalOpt=true)
void initializeSIPreEmitPeepholePass(PassRegistry &)
char & AMDGPUPromoteAllocaToVectorID
void initializeSIFoldOperandsLegacyPass(PassRegistry &)
char & SILoadStoreOptimizerLegacyID
char & SILowerWWMCopiesID
void initializeSIFixVGPRCopiesPass(PassRegistry &)
ModulePass * createAMDGPUUnifyMetadataPass()
void initializeAMDGPUGlobalISelDivergenceLoweringPass(PassRegistry &)
void initializeAMDGPURemoveIncompatibleFunctionsPass(PassRegistry &)
void initializeSILowerWWMCopiesPass(PassRegistry &)
FunctionPass * createSIPeepholeSDWALegacyPass()
void initializeGCNNSAReassignPass(PassRegistry &)
void initializeSIInsertWaitcntsPass(PassRegistry &)
char & SIFormMemoryClausesID
char & AMDGPURemoveIncompatibleFunctionsID
void initializeSILoadStoreOptimizerLegacyPass(PassRegistry &)
void initializeAMDGPULowerModuleLDSLegacyPass(PassRegistry &)
void initializeAMDGPUCtorDtorLoweringLegacyPass(PassRegistry &)
void initializeAMDGPURegBankCombinerPass(PassRegistry &)
void initializeSILateBranchLoweringPass(PassRegistry &)
FunctionPass * createSIFoldOperandsLegacyPass()
FunctionPass * createAMDGPUPromoteAllocaToVector()
char & AMDGPUUnifyDivergentExitNodesID
char & SIInsertWaitcntsID
FunctionPass * createAMDGPUAtomicOptimizerPass(ScanOptions ScanStrategy)
char & AMDGPUPrintfRuntimeBindingID
char & SIOptimizeVGPRLiveRangeLegacyID
char & GCNNSAReassignID
void initializeAMDGPURewriteOutArgumentsPass(PassRegistry &)
void initializeAMDGPUExternalAAWrapperPass(PassRegistry &)
void initializeAMDGPULowerKernelArgumentsPass(PassRegistry &)
char & SILateBranchLoweringPassID
char & SIModeRegisterID
char & AMDGPUSwLowerLDSLegacyPassID
FunctionPass * createGCNPreRAOptimizationsPass()
void initializeAMDGPUAnnotateKernelFeaturesPass(PassRegistry &)
void initializeSIPostRABundlerPass(PassRegistry &)
void initializeAMDGPUPromoteAllocaToVectorPass(PassRegistry &)
char & GCNDPPCombineLegacyID
Pass * createAMDGPUAttributorLegacyPass()
@ None
Definition: CodeGenData.h:106
void initializeSIWholeQuadModePass(PassRegistry &)
FunctionPass * createAMDGPULowerKernelArgumentsPass()
char & AMDGPUInsertDelayAluID
Pass * createAMDGPUAnnotateKernelFeaturesPass()
char & SIOptimizeExecMaskingPreRAID
char & AMDGPULowerModuleLDSLegacyPassID
void initializeSIInsertHardClausesPass(PassRegistry &)
FunctionPass * createSIPostRABundlerPass()
FunctionPass * createSIFormMemoryClausesPass()
void initializeAMDGPUPostLegalizerCombinerPass(PassRegistry &)
FunctionPass * createSIPreAllocateWWMRegsLegacyPass()
Pass * createAMDGPUStructurizeCFGPass()
CodeGenOptLevel
Code generation optimization level.
Definition: CodeGen.h:54
char & AMDGPULowerBufferFatPointersID
char & AMDGPURegBankSelectID
void initializeAMDGPUReserveWWMRegsPass(PassRegistry &)
ModulePass * createAMDGPUPrintfRuntimeBinding()
void initializeSIMemoryLegalizerPass(PassRegistry &)
char & AMDGPUUnifyMetadataID
void initializeAMDGPUImageIntrinsicOptimizerPass(PassRegistry &)
char & SIPreAllocateWWMRegsLegacyID
ModulePass * createAMDGPULowerModuleLDSLegacyPass(const AMDGPUTargetMachine *TM=nullptr)
void initializeAMDGPUPreLegalizerCombinerPass(PassRegistry &)
char & AMDGPUReserveWWMRegsID
FunctionPass * createAMDGPUPromoteAlloca()
char & SIPreEmitPeepholeID
ModulePass * createAMDGPURemoveIncompatibleFunctionsPass(const TargetMachine *)
void initializeGCNRegPressurePrinterPass(PassRegistry &)
char & AMDGPURewriteOutArgumentsID
void initializeSILowerI1CopiesLegacyPass(PassRegistry &)
char & SILowerSGPRSpillsLegacyID
void initializeAMDGPUArgumentUsageInfoPass(PassRegistry &)
char & AMDGPUPromoteAllocaID
FunctionPass * createAMDGPUCodeGenPreparePass()
void initializeSIAnnotateControlFlowLegacyPass(PassRegistry &)
FunctionPass * createAMDGPUReserveWWMRegsPass()
FunctionPass * createAMDGPUISelDag(TargetMachine &TM, CodeGenOptLevel OptLevel)
This pass converts a legalized DAG into a AMDGPU-specific.
void initializeSIPreAllocateWWMRegsLegacyPass(PassRegistry &)
void initializeSIFixSGPRCopiesLegacyPass(PassRegistry &)
char & AMDGPUAnnotateUniformValuesLegacyPassID
void initializeAMDGPUAtomicOptimizerPass(PassRegistry &)
char & AMDGPULowerKernelAttributesID
FunctionPass * createAMDGPURegBankSelectPass()
char & GCNRegPressurePrinterID
FunctionPass * createAMDGPURegBankCombiner(bool IsOptNone)
FunctionPass * createAMDGPURegBankLegalizePass()
char & SIWholeQuadModeID
void initializeSIOptimizeExecMaskingPreRAPass(PassRegistry &)
void initializeAMDGPUMarkLastScratchLoadPass(PassRegistry &)
FunctionPass * createSIOptimizeVGPRLiveRangeLegacyPass()
ImmutablePass * createAMDGPUExternalAAWrapperPass()
void initializeAMDGPUCodeGenPreparePass(PassRegistry &)
FunctionPass * createAMDGPURewriteUndefForPHILegacyPass()
FunctionPass * createSILowerI1CopiesLegacyPass()
char & AMDGPULateCodeGenPrepareLegacyID
void initializeAMDGPULowerKernelAttributesPass(PassRegistry &)
char & SIInsertHardClausesID
void initializeAMDGPUResourceUsageAnalysisPass(PassRegistry &)
char & SIFixSGPRCopiesLegacyID
void initializeGCNDPPCombineLegacyPass(PassRegistry &)
char & GCNCreateVOPDID
char & SIPeepholeSDWALegacyID
char & SIFoldOperandsLegacyID
char & SILowerControlFlowID
char & AMDGPUAtomicOptimizerID
char & SILowerI1CopiesLegacyID
FunctionPass * createLowerWWMCopiesPass()
void initializeSIOptimizeExecMaskingPass(PassRegistry &)
FunctionPass * createAMDGPUGlobalISelDivergenceLoweringPass()
FunctionPass * createSIMemoryLegalizerPass()
void initializeAMDGPULateCodeGenPrepareLegacyPass(PassRegistry &)
void initializeSILowerControlFlowPass(PassRegistry &)
void initializeSIOptimizeVGPRLiveRangeLegacyPass(PassRegistry &)
void initializeSIPeepholeSDWALegacyPass(PassRegistry &)
char & AMDGPUOpenCLEnqueuedBlockLoweringID
char & SIFixVGPRCopiesID
char & AMDGPURegBankLegalizeID
void initializeAMDGPURegBankLegalizePass(PassRegistry &)
void initializeAMDGPURegBankSelectPass(PassRegistry &)
FunctionPass * createAMDGPULateCodeGenPrepareLegacyPass()
char & AMDGPURewriteUndefForPHILegacyPassID
FunctionPass * createAMDGPUImageIntrinsicOptimizerPass(const TargetMachine *)
void initializeAMDGPUUnifyDivergentExitNodesPass(PassRegistry &)
void initializeAMDGPULowerBufferFatPointersPass(PassRegistry &)
FunctionPass * createSIInsertWaitcntsPass()
FunctionPass * createAMDGPUAnnotateUniformValuesLegacy()
FunctionPass * createSIOptimizeExecMaskingPreRAPass()
FunctionPass * createGCNDPPCombinePass()
FunctionPass * createSIShrinkInstructionsLegacyPass()
AnalysisManager< Module > ModuleAnalysisManager
Convenience typedef for the Module analysis manager.
Definition: MIRParser.h:38
char & AMDGPUMarkLastScratchLoadID
void initializeAMDGPUAnnotateUniformValuesLegacyPass(PassRegistry &)
void initializeAMDGPUPrintfRuntimeBindingPass(PassRegistry &)
void initializeAMDGPUPromoteAllocaPass(PassRegistry &)
void initializeAMDGPUOpenCLEnqueuedBlockLoweringPass(PassRegistry &)
void initializeAMDGPUInsertDelayAluPass(PassRegistry &)
char & SIOptimizeExecMaskingID
void initializeAMDGPUUnifyMetadataPass(PassRegistry &)
FunctionPass * createSIFixControlFlowLiveIntervalsPass()
char & AMDGPULowerKernelArgumentsID
void initializeAMDGPUAlwaysInlinePass(PassRegistry &)
char & AMDGPUCodeGenPrepareID
void initializeAMDGPUSetWavePriorityPass(PassRegistry &)
FunctionPass * createSIFixSGPRCopiesLegacyPass()
char & AMDGPUPerfHintAnalysisLegacyID
FunctionPass * createAMDGPUPromoteKernelArgumentsPass()
char & GCNPreRALongBranchRegID
void initializeAMDGPUPerfHintAnalysisLegacyPass(PassRegistry &)
void initializeAMDGPUPromoteKernelArgumentsPass(PassRegistry &)
AMDGPUAlwaysInlinePass(bool GlobalOpt=true)
Definition: AMDGPU.h:274
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
AMDGPUAtomicOptimizerPass(TargetMachine &TM, ScanOptions ScanImpl)
Definition: AMDGPU.h:260
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
AMDGPUImageIntrinsicOptimizerPass(TargetMachine &TM)
Definition: AMDGPU.h:75
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
AMDGPULowerBufferFatPointersPass(const TargetMachine &TM)
Definition: AMDGPU.h:151
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
AMDGPULowerModuleLDSPass(const AMDGPUTargetMachine &TM_)
Definition: AMDGPU.h:141
const AMDGPUTargetMachine & TM
Definition: AMDGPU.h:140
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
AMDGPUPromoteAllocaPass(TargetMachine &TM)
Definition: AMDGPU.h:243
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
AMDGPUPromoteAllocaToVectorPass(TargetMachine &TM)
Definition: AMDGPU.h:252
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
const AMDGPUTargetMachine & TM
Definition: AMDGPU.h:287
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
AMDGPUSwLowerLDSPass(const AMDGPUTargetMachine &TM_)
Definition: AMDGPU.h:288
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
A CRTP mix-in to automatically provide informational APIs needed for passes.
Definition: PassManager.h:69