#include "llvm/ADT/Statistic.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/InstrTypes.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/InstIterator.h"
#include "SVF-LLVM/BasicTypes.h"
#include "SVF-LLVM/BreakConstantExpr.h"
#include <iostream>
#include <map>
#include <utility>
Go to the source code of this file.
◆ DEBUG_TYPE
#define DEBUG_TYPE "break-constgeps" |
◆ convertExpression()
Definition at line 162 of file BreakConstantExpr.cpp.
167 if (CE->getOpcode() == Instruction::GetElementPtr)
171 Result->insertBefore(InsertPt);
llvm::Instruction Instruction
◆ hasConstantBinaryOrUnaryOp()
Definition at line 112 of file BreakConstantExpr.cpp.
114 if (
ConstantExpr * CE = SVFUtil::dyn_cast<ConstantExpr>(V))
116 if (Instruction::isBinaryOp(CE->getOpcode()) || Instruction::isUnaryOp(CE->getOpcode()))
static ConstantExpr * hasConstantBinaryOrUnaryOp(Value *V)
llvm::ConstantExpr ConstantExpr
◆ hasConstantExpr()
◆ hasConstantGEP()
◆ STATISTIC() [1/2]
STATISTIC |
( |
GEPChanges |
, |
|
|
"Number of Converted GEP Constant Expressions" |
|
|
) |
| |
◆ STATISTIC() [2/2]
STATISTIC |
( |
TotalChanges |
, |
|
|
"Number of Converted Constant Expressions" |
|
|
) |
| |