LLVM 20.0.0git
|
#include "Transforms/InstCombine/InstCombineInternal.h"
Static Public Member Functions | |
static Value * | Negate (bool LHSIsZero, bool IsNSW, Value *Root, InstCombinerImpl &IC) |
Attempt to negate Root . | |
Definition at line 777 of file InstCombineInternal.h.
|
static |
Attempt to negate Root
.
Retuns nullptr if negation can't be performed, otherwise returns negated value.
Definition at line 535 of file InstCombineNegator.cpp.
References llvm::InstCombiner::Builder, llvm::IRBuilderBase::ClearInsertionPoint(), llvm::dbgs(), llvm::Value::getContext(), llvm::InstCombiner::getDataLayout(), llvm::InstCombiner::getDominatorTree(), I, llvm::IRBuilderBase::Insert(), LLVM_DEBUG, N, NegatorEnabled, llvm::IRBuilderBase::SetCurrentDebugLocation(), and llvm::DebugCounter::shouldExecute().
Referenced by llvm::InstCombinerImpl::visitMul(), and llvm::InstCombinerImpl::visitSub().