LLVM  6.0.0svn
Macros | Functions
Instruction.cpp File Reference
#include "llvm/IR/Instruction.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/IR/CallSite.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/MDBuilder.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Operator.h"
#include "llvm/IR/Type.h"
#include "llvm/IR/Instruction.def"
Include dependency graph for Instruction.cpp:

Go to the source code of this file.

Macros

#define HANDLE_INST(num, opc, clas)
 

Functions

static bool haveSameSpecialState (const Instruction *I1, const Instruction *I2, bool IgnoreAlignment=false)
 Return true if both instructions have the same special state. More...
 

Macro Definition Documentation

◆ HANDLE_INST

#define HANDLE_INST (   num,
  opc,
  clas 
)
Value:
case Instruction::opc: \
New = cast<clas>(this)->cloneImpl(); \
break;

Function Documentation

◆ haveSameSpecialState()

static bool haveSameSpecialState ( const Instruction I1,
const Instruction I2,
bool  IgnoreAlignment = false 
)
static

Return true if both instructions have the same special state.

This must be kept in sync with FunctionComparator::cmpOperations in lib/Transforms/IPO/MergeFunctions.cpp.

Definition at line 355 of file Instruction.cpp.

References assert(), getAlignment(), llvm::Intrinsic::getAttributes(), llvm::AttributeList::getAttributes(), llvm::Instruction::getOpcode(), llvm::PPC::getPredicate(), isVolatile(), isWeak(), and SI.

Referenced by llvm::Instruction::isIdenticalToWhenDefined(), and llvm::Instruction::isSameOperationAs().