LLVM  10.0.0svn
Macros | Functions
AMDGPUFixFunctionBitcasts.cpp File Reference

Promote indirect (bitcast) calls to direct calls when they are statically known to be direct. More...

#include "AMDGPU.h"
#include "llvm/IR/InstVisitor.h"
#include "llvm/Transforms/Utils/CallPromotionUtils.h"
Include dependency graph for AMDGPUFixFunctionBitcasts.cpp:

Go to the source code of this file.

Macros

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

Functions

 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

◆ DEBUG_TYPE

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

Definition at line 22 of file AMDGPUFixFunctionBitcasts.cpp.

Function Documentation

◆ INITIALIZE_PASS()

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

Definition at line 51 of file AMDGPUFixFunctionBitcasts.cpp.

References Modified.