LLVM  14.0.0git
Macros | Functions
AMDGPUFixFunctionBitcasts.cpp File Reference
#include "AMDGPU.h"
#include "llvm/IR/InstVisitor.h"
#include "llvm/Pass.h"
#include "llvm/Transforms/Utils/CallPromotionUtils.h"
Include dependency graph for AMDGPUFixFunctionBitcasts.cpp:

Go to the source code of this file.


#define DEBUG_TYPE   "amdgpu-fix-function-bitcasts"


 INITIALIZE_PASS (AMDGPUFixFunctionBitcasts, DEBUG_TYPE, "Fix function bitcasts for AMDGPU", false, false) ModulePass *llvm

Detailed Description

Promote indirect (bitcast) calls to direct calls when they are statically known to be direct. Required when InstCombine is not run (e.g. at OptNone) because AMDGPU does not support indirect calls.

Definition in file AMDGPUFixFunctionBitcasts.cpp.

Macro Definition Documentation


#define DEBUG_TYPE   "amdgpu-fix-function-bitcasts"

Definition at line 23 of file AMDGPUFixFunctionBitcasts.cpp.

Function Documentation


INITIALIZE_PASS ( AMDGPUFixFunctionBitcasts  ,
"Fix function bitcasts for AMDGPU"  ,
false  ,

Definition at line 53 of file AMDGPUFixFunctionBitcasts.cpp.