|
LLVM
5.0.0
|
This pass does misc. More...
#include "AMDGPU.h"#include "AMDGPUSubtarget.h"#include "AMDGPUTargetMachine.h"#include "llvm/ADT/StringRef.h"#include "llvm/Analysis/DivergenceAnalysis.h"#include "llvm/CodeGen/Passes.h"#include "llvm/CodeGen/TargetPassConfig.h"#include "llvm/IR/Attributes.h"#include "llvm/IR/BasicBlock.h"#include "llvm/IR/Constants.h"#include "llvm/IR/DerivedTypes.h"#include "llvm/IR/Function.h"#include "llvm/IR/IRBuilder.h"#include "llvm/IR/InstVisitor.h"#include "llvm/IR/InstrTypes.h"#include "llvm/IR/Instruction.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/Intrinsics.h"#include "llvm/IR/LLVMContext.h"#include "llvm/IR/Operator.h"#include "llvm/IR/Type.h"#include "llvm/IR/Value.h"#include "llvm/Pass.h"#include "llvm/Support/Casting.h"#include <cassert>#include <iterator>Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "amdgpu-codegenprepare" |
Functions | |
| static bool | promotedOpIsNSW (const Instruction &I) |
| static bool | promotedOpIsNUW (const Instruction &I) |
| static bool | shouldKeepFDivF32 (Value *Num, bool UnsafeDiv) |
| static bool | hasUnsafeFPMath (const Function &F) |
| INITIALIZE_PASS_BEGIN (AMDGPUCodeGenPrepare, DEBUG_TYPE,"AMDGPU IR optimizations", false, false) INITIALIZE_PASS_END(AMDGPUCodeGenPrepare | |
Variables | |
| DEBUG_TYPE | |
| AMDGPU IR | optimizations |
| AMDGPU IR | false |
This pass does misc.
AMDGPU optimizations on IR before instruction selection.
Definition in file AMDGPUCodeGenPrepare.cpp.
| #define DEBUG_TYPE "amdgpu-codegenprepare" |
Definition at line 44 of file AMDGPUCodeGenPrepare.cpp.
Definition at line 431 of file AMDGPUCodeGenPrepare.cpp.
References llvm::Function::getFnAttribute(), and llvm::Attribute::getValueAsString().
| INITIALIZE_PASS_BEGIN | ( | AMDGPUCodeGenPrepare | , |
| DEBUG_TYPE | , | ||
| "AMDGPU IR optimizations" | , | ||
| false | , | ||
| false | |||
| ) |
|
static |
Definition at line 199 of file AMDGPUCodeGenPrepare.cpp.
References llvm::MCID::Add, llvm::Instruction::getOpcode(), and llvm::Instruction::hasNoUnsignedWrap().
|
static |
Definition at line 213 of file AMDGPUCodeGenPrepare.cpp.
References llvm::MCID::Add, llvm::Instruction::getOpcode(), and llvm::Instruction::hasNoUnsignedWrap().
Definition at line 353 of file AMDGPUCodeGenPrepare.cpp.
References llvm::dyn_cast(), and llvm::ConstantFP::isExactlyValue().
| DEBUG_TYPE |
Definition at line 519 of file AMDGPUCodeGenPrepare.cpp.
| AMDGPU IR false |
Definition at line 519 of file AMDGPUCodeGenPrepare.cpp.
| AMDGPU IR optimizations |
Definition at line 519 of file AMDGPUCodeGenPrepare.cpp.
1.8.6