LLVM
8.0.1
|
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"
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 | |
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.
Definition at line 23 of file AMDGPUFixFunctionBitcasts.cpp.
INITIALIZE_PASS | ( | AMDGPUFixFunctionBitcasts | , |
DEBUG_TYPE | , | ||
"Fix function bitcasts for AMDGPU" | , | ||
false | , | ||
false | |||
) |
Definition at line 52 of file AMDGPUFixFunctionBitcasts.cpp.
References Modified.