LLVM: llvm::Negator Class Reference (original) (raw)
#include "[Transforms/InstCombine/InstCombineInternal.h](InstCombineInternal%5F8h%5Fsource.html)"
Definition at line 854 of file InstCombineInternal.h.
◆ Negate()
Attempt to negate Root.
Retuns nullptr if negation can't be performed, otherwise returns negated value.
Definition at line 545 of file InstCombineNegator.cpp.
References llvm::InstCombiner::Builder, llvm::IRBuilderBase::ClearInsertionPoint(), llvm::dbgs(), llvm::dwarf_linker::DebugLoc, 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().
The documentation for this class was generated from the following files:
- lib/Transforms/InstCombine/InstCombineInternal.h
- lib/Transforms/InstCombine/InstCombineNegator.cpp