|
LLVM
5.0.0
|
#include "InstCombineInternal.h"#include "llvm/ADT/STLExtras.h"#include "llvm/Analysis/InstructionSimplify.h"#include "llvm/IR/DataLayout.h"#include "llvm/IR/GetElementPtrTypeIterator.h"#include "llvm/IR/PatternMatch.h"#include "llvm/Support/KnownBits.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "instcombine" |
Functions | |
| static Value * | checkForNegativeOperand (BinaryOperator &I, InstCombiner::BuilderTy &Builder) |
| static Instruction * | foldAddWithConstant (BinaryOperator &Add, InstCombiner::BuilderTy &Builder) |
| #define DEBUG_TYPE "instcombine" |
Definition at line 25 of file InstCombineAddSub.cpp.
|
static |
Definition at line 897 of file InstCombineAddSub.cpp.
References llvm::APInt::countTrailingZeros(), llvm::IRBuilder< T, Inserter >::CreateAnd(), llvm::IRBuilder< T, Inserter >::CreateOr(), llvm::IRBuilder< T, Inserter >::CreateSub(), llvm::User::getOperand(), llvm::Value::hasOneUse(), llvm::PatternMatch::m_Add(), llvm::PatternMatch::m_And(), llvm::PatternMatch::m_APInt(), llvm::PatternMatch::m_One(), llvm::PatternMatch::m_Or(), llvm::PatternMatch::m_Value(), llvm::PatternMatch::m_Xor(), llvm::PatternMatch::match(), std::swap(), X, Y, and llvm::Z.
Referenced by llvm::InstCombiner::visitAdd().
|
static |
Definition at line 953 of file InstCombineAddSub.cpp.
References C, llvm::CastInst::Create(), llvm::IRBuilder< T, Inserter >::CreateNot(), llvm::IRBuilder< T, Inserter >::CreateNUWAdd(), llvm::ConstantInt::get(), llvm::APInt::getBitWidth(), llvm::User::getOperand(), llvm::Type::getScalarSizeInBits(), llvm::Value::getType(), llvm::Instruction::hasNoSignedWrap(), llvm::Instruction::hasNoUnsignedWrap(), llvm::Value::hasOneUse(), llvm::APInt::isMinSignedValue(), llvm::APInt::isNegative(), llvm::APInt::isOneValue(), llvm::APInt::isSignMask(), llvm::PatternMatch::m_APInt(), llvm::PatternMatch::m_AShr(), llvm::PatternMatch::m_NUWAdd(), llvm::PatternMatch::m_SExt(), llvm::PatternMatch::m_Shl(), llvm::PatternMatch::m_Value(), llvm::PatternMatch::m_Xor(), llvm::PatternMatch::m_ZExt(), llvm::PatternMatch::match(), llvm::APInt::sext(), llvm::APInt::sge(), llvm::APInt::trunc(), and X.
Referenced by llvm::InstCombiner::visitAdd().
1.8.6