|
LLVM 22.0.0git
|
#include "NVPTXUtilities.h"#include "llvm/IR/IRBuilder.h"#include "llvm/IR/InstIterator.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/Intrinsics.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "nvptx-ir-peephole" |
Functions | |
| static bool | tryFoldBinaryFMul (BinaryOperator *BI) |
| static bool | foldFMA (Function &F) |
| INITIALIZE_PASS (NVPTXIRPeephole, "nvptx-ir-peephole", "NVPTX IR Peephole", false, false) bool NVPTXIRPeephole | |
| #define DEBUG_TYPE "nvptx-ir-peephole" |
Definition at line 31 of file NVPTXIRPeephole.cpp.
Definition at line 113 of file NVPTXIRPeephole.cpp.
References Changed, llvm::dyn_cast(), F, I, instructions, llvm::make_early_inc_range(), and tryFoldBinaryFMul().
Referenced by INITIALIZE_PASS(), and llvm::NVPTXIRPeepholePass::run().
Definition at line 150 of file NVPTXIRPeephole.cpp.
References F, foldFMA(), and runOnFunction().
|
static |
Definition at line 35 of file NVPTXIRPeephole.cpp.
References llvm::cast(), llvm::dbgs(), llvm::dyn_cast(), llvm::Instruction::eraseFromParent(), llvm::FMul, llvm::Instruction::getFastMathFlags(), llvm::BinaryOperator::getOpcode(), llvm::User::getOperand(), llvm::Value::getType(), llvm::FastMathFlags::intersectRewrite(), LLVM_DEBUG, llvm::Value::replaceAllUsesWith(), and llvm::FastMathFlags::unionValue().
Referenced by foldFMA().