Static Value-Flow Analysis
Loading...
Searching...
No Matches
SVFIRBuilder.h
Go to the documentation of this file.
1//===- SVFIRBuilder.h -- Building SVFIR-------------------------------------------//
2//
3// SVF: Static Value-Flow Analysis
4//
5// Copyright (C) <2013-2017> <Yulei Sui>
6//
7
8// This program is free software: you can redistribute it and/or modify
9// it under the terms of the GNU Affero General Public License as published by
10// the Free Software Foundation, either version 3 of the License, or
11// (at your option) any later version.
12
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU Affero General Public License for more details.
17
18// You should have received a copy of the GNU Affero General Public License
19// along with this program. If not, see <http://www.gnu.org/licenses/>.
20//
21//===----------------------------------------------------------------------===//
22
23/*
24 * SVFIRBuilder.h
25 *
26 * Created on: Nov 1, 2013
27 * Author: Yulei Sui
28 */
29
30#ifndef PAGBUILDER_H_
31#define PAGBUILDER_H_
32
33#include "SVFIR/SVFIR.h"
34#include "SVF-LLVM/BasicTypes.h"
36#include "SVF-LLVM/LLVMModule.h"
37#include "SVF-LLVM/LLVMUtil.h"
38
39namespace SVF
40{
41
42class SVFModule;
46class SVFIRBuilder: public llvm::InstVisitor<SVFIRBuilder>
47{
48
49private:
54
55public:
61 virtual ~SVFIRBuilder()
62 {
63 }
64
66 virtual SVFIR* build();
67
69 SVFIR* getPAG() const
70 {
71 return pag;
72 }
73
75
76 void initialiseNodes();
77 void addEdge(NodeID src, NodeID dst, SVFStmt::PEDGEK kind,
78 APOffset offset = 0, Instruction* cs = nullptr);
79 // @}
80
82 void sanityCheck();
83
85
86 // GetValNode - Return the value node according to a LLVM Value.
88 {
89 // first handle gep edge if val if a constant expression
90 processCE(V);
91
92 // strip off the constant cast and return the value node
94 return pag->getValueNode(svfVal);
95 }
96
98 inline NodeID getObjectNode(const Value* V)
99 {
101 return pag->getObjectNode(svfVal);
102 }
103
105 inline NodeID getReturnNode(const SVFFunction *func)
106 {
107 return pag->getReturnNode(func);
108 }
109
111 inline NodeID getVarargNode(const SVFFunction *func)
112 {
113 return pag->getVarargNode(func);
114 }
116
117
119
120 // Instructions that cannot be folded away.
121 virtual void visitAllocaInst(AllocaInst &AI);
122 void visitPHINode(PHINode &I);
123 void visitStoreInst(StoreInst &I);
124 void visitLoadInst(LoadInst &I);
126 void visitCallInst(CallInst &I);
129 void visitCallSite(CallBase* cs);
131 void visitCastInst(CastInst &I);
140 // TerminatorInst and UnwindInst have been removed since llvm-8.0.0
141 // void visitTerminatorInst(TerminatorInst &TI) {}
142 // void visitUnwindInst(UnwindInst &I) { /*returns void*/}
143
146 void visitCmpInst(CmpInst &I);
147
154
159
161
174
176 void visitResumeInst(ResumeInst&) /*returns void*/
177 {
178 }
179 void visitUnreachableInst(UnreachableInst&) /*returns void*/
180 {
181 }
182 void visitFenceInst(FenceInst &I) /*returns void*/
183 {
185 }
194
197 {
198 // If a new instruction is added to LLVM that we don't handle.
199 // TODO: ignore here:
200 }
201 //}@
202
204 void updateCallGraph(PTACallGraph* callgraph);
205
206protected:
208
211 u32_t offset);
214
216 void processCE(const Value* val);
217
219 u32_t inferFieldIdxFromByteOffset(const llvm::GEPOperator* gepOp, DataLayout *dl, AccessPath& ap, APOffset idx);
220
222 bool computeGepOffset(const User *V, AccessPath& ap);
223
225 const Value* getBaseValueForExtArg(const Value* V);
226
228 void handleDirectCall(CallBase* cs, const Function *F);
229
231 void handleIndCall(CallBase* cs);
232
234
235 virtual const Type *getBaseTypeAndFlattenedFields(const Value *V, std::vector<AccessPath> &fields, const Value* szValue);
236 virtual void addComplexConsForExt(Value *D, Value *S, const Value* sz);
237 virtual void handleExtCall(const CallBase* cs, const SVFFunction* svfCallee);
239
241 inline void setCurrentLocation(const Value* val, const BasicBlock* bb)
242 {
243 curBB = (bb == nullptr? nullptr : llvmModuleSet()->getSVFBasicBlock(bb));
244 curVal = (val == nullptr ? nullptr: llvmModuleSet()->getSVFValue(val));
245 }
246 inline void setCurrentLocation(const SVFValue* val, const SVFBasicBlock* bb)
247 {
248 curBB = bb;
249 curVal = val;
250 }
251 inline const SVFValue* getCurrentValue() const
252 {
253 return curVal;
254 }
255 inline const SVFBasicBlock* getCurrentBB() const
256 {
257 return curBB;
258 }
259
269
272 {
274 ConstantPointerNull* constNull = ConstantPointerNull::get(PointerType::getUnqual(cxt));
280 return nullPtr;
281 }
282
283 NodeID getGepValVar(const Value* val, const AccessPath& ap, const SVFType* elementType);
284
286
292
295 {
296 if(AddrStmt *edge = pag->addAddrStmt(src, dst))
297 {
299 return edge;
300 }
301 return nullptr;
302 }
303
305 inline AddrStmt* addAddrWithStackArraySz(NodeID src, NodeID dst, llvm::AllocaInst& inst)
306 {
307 AddrStmt* edge = addAddrEdge(src, dst);
308 if (inst.getArraySize())
309 {
310 SVFValue* arrSz = llvmModuleSet()->getSVFValue(inst.getArraySize());
311 edge->addArrSize(arrSz);
312 }
313 return edge;
314 }
315
317 inline AddrStmt* addAddrWithHeapSz(NodeID src, NodeID dst, const CallBase* cs)
318 {
319 // get name of called function
320 AddrStmt* edge = addAddrEdge(src, dst);
321
322 llvm::Function* calledFunc = cs->getCalledFunction();
323 std::string functionName;
324 if (calledFunc)
325 {
326 functionName = calledFunc->getName().str();
327 }
328 else
329 {
330 SVFUtil::wrnMsg("not support indirect call to add AddrStmt.\n");
331 }
332 if (functionName == "malloc")
333 {
334 if (cs->arg_size() > 0)
335 {
336 const llvm::Value* val = cs->getArgOperand(0);
338 edge->addArrSize(svfval);
339 }
340 }
341 // Check if the function called is 'calloc' and process its arguments.
342 // e.g. "%5 = call i8* @calloc(1, 8)", edge should add two SVFValue (1 and 8)
343 else if (functionName == "calloc")
344 {
345 if (cs->arg_size() > 1)
346 {
347 edge->addArrSize(llvmModuleSet()->getSVFValue(cs->getArgOperand(0)));
348 edge->addArrSize(llvmModuleSet()->getSVFValue(cs->getArgOperand(1)));
349 }
350 }
351 else
352 {
353 if (cs->arg_size() > 0)
354 {
355 const llvm::Value* val = cs->getArgOperand(0);
357 edge->addArrSize(svfval);
358 }
359 }
360 return edge;
361 }
362
364 {
365 if(CopyStmt *edge = pag->addCopyStmt(src, dst, kind))
366 {
368 return edge;
369 }
370 return nullptr;
371 }
372
374 {
375 // COPYVAL, ZEXT, SEXT, BITCAST, FPTRUNC, FPTOUI, FPTOSI, UITOFP, SITOFP, INTTOPTR, PTRTOINT
376 if (const Instruction* inst = SVFUtil::dyn_cast<Instruction>(val))
377 {
378 switch (inst->getOpcode())
379 {
380 case Instruction::ZExt:
381 return CopyStmt::ZEXT;
382 case Instruction::SExt:
383 return CopyStmt::SEXT;
384 case Instruction::BitCast:
385 return CopyStmt::BITCAST;
386 case Instruction ::Trunc:
387 return CopyStmt::TRUNC;
388 case Instruction::FPTrunc:
389 return CopyStmt::FPTRUNC;
390 case Instruction::FPToUI:
391 return CopyStmt::FPTOUI;
392 case Instruction::FPToSI:
393 return CopyStmt::FPTOSI;
394 case Instruction::UIToFP:
395 return CopyStmt::UITOFP;
396 case Instruction::SIToFP:
397 return CopyStmt::SITOFP;
398 case Instruction::IntToPtr:
399 return CopyStmt::INTTOPTR;
400 case Instruction::PtrToInt:
401 return CopyStmt::PTRTOINT;
402 default:
403 return CopyStmt::COPYVAL;
404 }
405 }
406 assert (false && "Unknown cast inst!");
407 }
408
410 inline void addPhiStmt(NodeID res, NodeID opnd, const ICFGNode* pred)
411 {
413 if(PhiStmt *edge = pag->addPhiStmt(res,opnd,pred))
415 }
417 inline void addSelectStmt(NodeID res, NodeID op1, NodeID op2, NodeID cond)
418 {
419 if(SelectStmt *edge = pag->addSelectStmt(res,op1,op2,cond))
421 }
429 inline void addBinaryOPEdge(NodeID op1, NodeID op2, NodeID dst, u32_t opcode)
430 {
431 if(BinaryOPStmt *edge = pag->addBinaryOPStmt(op1, op2, dst, opcode))
433 }
435 inline void addUnaryOPEdge(NodeID src, NodeID dst, u32_t opcode)
436 {
437 if(UnaryOPStmt *edge = pag->addUnaryOPStmt(src, dst, opcode))
439 }
447 inline void addLoadEdge(NodeID src, NodeID dst)
448 {
449 if(LoadStmt *edge = pag->addLoadStmt(src, dst))
451 }
453 inline void addStoreEdge(NodeID src, NodeID dst)
454 {
455 ICFGNode* node;
456 if (const SVFInstruction* inst = SVFUtil::dyn_cast<SVFInstruction>(curVal))
457 node = llvmModuleSet()->getICFGNode(
458 SVFUtil::cast<Instruction>(llvmModuleSet()->getLLVMValue(inst)));
459 else
460 node = nullptr;
461 if (StoreStmt* edge = pag->addStoreStmt(src, dst, node))
463 }
465 inline void addCallEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunEntryICFGNode* entry)
466 {
467 if (CallPE* edge = pag->addCallPE(src, dst, cs, entry))
469 }
471 inline void addRetEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunExitICFGNode* exit)
472 {
473 if (RetPE* edge = pag->addRetPE(src, dst, cs, exit))
475 }
477 inline void addGepEdge(NodeID src, NodeID dst, const AccessPath& ap, bool constGep)
478 {
479 if (GepStmt* edge = pag->addGepStmt(src, dst, ap, constGep))
481 }
483 inline void addNormalGepEdge(NodeID src, NodeID dst, const AccessPath& ap)
484 {
485 if (GepStmt* edge = pag->addNormalGepStmt(src, dst, ap))
487 }
489 inline void addVariantGepEdge(NodeID src, NodeID dst, const AccessPath& ap)
490 {
491 if (GepStmt* edge = pag->addVariantGepStmt(src, dst, ap))
493 }
495 inline void addThreadForkEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunEntryICFGNode* entry)
496 {
497 if (TDForkPE* edge = pag->addThreadForkPE(src, dst, cs, entry))
499 }
501 inline void addThreadJoinEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunExitICFGNode* exit)
502 {
503 if (TDJoinPE* edge = pag->addThreadJoinPE(src, dst, cs, exit))
505 }
507
509
510private:
515};
516
517} // End namespace SVF
518
519#endif /* PAGBUILDER_H_ */
#define F(f)
buffer offset
Definition cJSON.cpp:1113
std::vector< std::pair< const ICFGNode *, s32_t > > SuccAndCondPairVec
NodeType * getGNode(NodeID id) const
Get a node.
NodeID getBlkPtr() const
Definition IRGraph.h:169
NodeID getNullPtr() const
Definition IRGraph.h:173
NodeID getValueNode(const SVFValue *V)
Definition IRGraph.h:137
NodeID getVarargNode(const SVFFunction *func) const
getVarargNode - Return the unique node representing the variadic argument of a variadic function.
Definition IRGraph.h:157
NodeID getReturnNode(const SVFFunction *func) const
GetReturnNode - Return the unique node representing the return value of a function.
Definition IRGraph.h:152
NodeID getObjectNode(const SVFValue *V)
Definition IRGraph.h:147
static LLVMModuleSet * getLLVMModuleSet()
Definition LLVMModule.h:122
void addToLLVMVal2SVFVarMap(const Value *val, SVFBaseNode *svfBaseNode)
ICFGNode * getICFGNode(const Instruction *inst)
Get a basic block ICFGNode.
SVFBasicBlock * getSVFBasicBlock(const BasicBlock *bb) const
Definition LLVMModule.h:267
LLVMContext & getContext() const
Definition LLVMModule.h:379
SVFValue * getSVFValue(const Value *value)
u32_t inferFieldIdxFromByteOffset(const llvm::GEPOperator *gepOp, DataLayout *dl, AccessPath &ap, APOffset idx)
Infer field index from byteoffset.
CopyStmt::CopyKind getCopyKind(const Value *val)
void sanityCheck()
Sanity check for SVFIR.
void visitLandingPadInst(LandingPadInst &I)
SVFIR * getPAG() const
Return SVFIR.
void setCurrentLocation(const Value *val, const BasicBlock *bb)
Set current basic block in order to keep track of control flow information.
NodeID addNullPtrNode()
Add NullPtr PAGNode.
void visitLoadInst(LoadInst &I)
void setCurrentLocation(const SVFValue *val, const SVFBasicBlock *bb)
SVFIRBuilder(SVFModule *mod)
Constructor.
void updateCallGraph(PTACallGraph *callgraph)
connect PAG edges based on callgraph
void addPhiStmt(NodeID res, NodeID opnd, const ICFGNode *pred)
Add Copy edge.
void addStoreEdge(NodeID src, NodeID dst)
Add Store edge.
AddrStmt * addAddrEdge(NodeID src, NodeID dst)
Add Address edge.
void visitInvokeInst(InvokeInst &II)
void handleDirectCall(CallBase *cs, const Function *F)
Handle direct call.
void addBinaryOPEdge(NodeID op1, NodeID op2, NodeID dst, u32_t opcode)
Add Copy edge.
NodeID getVarargNode(const SVFFunction *func)
getVarargNode - Return the node representing the unique variadic argument of a function.
void visitCallInst(CallInst &I)
void addLoadEdge(NodeID src, NodeID dst)
Add Load edge.
void visitGetElementPtrInst(GetElementPtrInst &I)
void visitBranchInst(BranchInst &I)
virtual void visitAllocaInst(AllocaInst &AI)
Our visit overrides.
void visitGlobal(SVFModule *svfModule)
Handle globals including (global variable and functions)
void addGepEdge(NodeID src, NodeID dst, const AccessPath &ap, bool constGep)
Add Gep edge.
void addCmpEdge(NodeID op1, NodeID op2, NodeID dst, u32_t predict)
Add Copy edge.
void visitInsertValueInst(InsertValueInst &I)
AddrStmt * addAddrWithHeapSz(NodeID src, NodeID dst, const CallBase *cs)
Add Address edge from ext call with args like "%5 = call i8* @malloc(i64 noundef 5)".
LLVMModuleSet * llvmModuleSet()
void visitStoreInst(StoreInst &I)
void visitVAStartInst(VAStartInst &)
void addThreadForkEdge(NodeID src, NodeID dst, const CallICFGNode *cs, const FunEntryICFGNode *entry)
Add Thread fork edge for parameter passing.
void addGlobalBlackHoleAddrEdge(NodeID node, const ConstantExpr *int2Ptrce)
Add global black hole Address edge.
virtual ~SVFIRBuilder()
Destructor.
NodeID getObjectNode(const Value *V)
GetObject - Return the object node (stack/global/heap/function) according to a LLVM Value.
void visitCallSite(CallBase *cs)
void processCE(const Value *val)
Process constant expression.
void handleIndCall(CallBase *cs)
Handle indirect call.
void addSelectStmt(NodeID res, NodeID op1, NodeID op2, NodeID cond)
Add SelectStmt.
void addBranchStmt(NodeID br, NodeID cond, const BranchStmt::SuccAndCondPairVec &succs)
Add Branch statement.
virtual SVFIR * build()
Start building SVFIR here.
void visitCallBrInst(CallBrInst &I)
SVFModule * svfModule
void visitExtractValueInst(ExtractValueInst &EVI)
AccessPath getAccessPathFromBaseNode(NodeID nodeId)
const SVFBasicBlock * curBB
Current basic block during SVFIR construction when visiting the module.
void visitSwitchInst(SwitchInst &I)
The following implementation follows ICFGBuilder::processFunBody.
void visitFreezeInst(FreezeInst &I)
void visitFenceInst(FenceInst &I)
const Value * getBaseValueForExtArg(const Value *V)
Get the base value of (i8* src and i8* dst) for external argument (e.g. memcpy(i8* dst,...
void addRetEdge(NodeID src, NodeID dst, const CallICFGNode *cs, const FunExitICFGNode *exit)
Add Return edge.
virtual void handleExtCall(const CallBase *cs, const SVFFunction *svfCallee)
void addBlackHoleAddrEdge(NodeID node)
void visitInstruction(Instruction &)
Provide base case for our instruction visit.
void addNormalGepEdge(NodeID src, NodeID dst, const AccessPath &ap)
Add Offset(Gep) edge.
void visitResumeInst(ResumeInst &)
Instruction not that often.
void visitInsertElementInst(InsertElementInst &I)
const SVFValue * getCurrentValue() const
void addUnaryOPEdge(NodeID src, NodeID dst, u32_t opcode)
Add Unary edge.
void visitVAEndInst(VAEndInst &)
const SVFBasicBlock * getCurrentBB() const
virtual const Type * getBaseTypeAndFlattenedFields(const Value *V, std::vector< AccessPath > &fields, const Value *szValue)
Handle external call.
void visitPHINode(PHINode &I)
CopyStmt * addCopyEdge(NodeID src, NodeID dst, CopyStmt::CopyKind kind)
void addCallEdge(NodeID src, NodeID dst, const CallICFGNode *cs, const FunEntryICFGNode *entry)
Add Call edge.
void setCurrentBBAndValueForPAGEdge(PAGEdge *edge)
void visitSelectInst(SelectInst &I)
void visitVAArgInst(VAArgInst &)
void visitAtomicCmpXchgInst(AtomicCmpXchgInst &I)
void addEdge(NodeID src, NodeID dst, SVFStmt::PEDGEK kind, APOffset offset=0, Instruction *cs=nullptr)
void visitCmpInst(CmpInst &I)
void visitExtractElementInst(ExtractElementInst &I)
bool computeGepOffset(const User *V, AccessPath &ap)
Compute offset of a gep instruction or gep constant expression.
void visitReturnInst(ReturnInst &I)
void visitShuffleVectorInst(ShuffleVectorInst &I)
NodeID getValueNode(const Value *V)
Get different kinds of node.
void visitCastInst(CastInst &I)
virtual void addComplexConsForExt(Value *D, Value *S, const Value *sz)
AddrStmt * addAddrWithStackArraySz(NodeID src, NodeID dst, llvm::AllocaInst &inst)
Add Address edge from allocinst with arraysize like "%4 = alloca i8, i64 3".
void visitAtomicRMWInst(AtomicRMWInst &I)
NodeID getGepValVar(const Value *val, const AccessPath &ap, const SVFType *elementType)
void visitUnreachableInst(UnreachableInst &)
void InitialGlobal(const GlobalVariable *gvar, Constant *C, u32_t offset)
void visitUnaryOperator(UnaryOperator &I)
void visitBinaryOperator(BinaryOperator &I)
void addThreadJoinEdge(NodeID src, NodeID dst, const CallICFGNode *cs, const FunExitICFGNode *exit)
Add Thread join edge for parameter passing.
const SVFValue * curVal
Current Value during SVFIR construction when visiting the module.
void initialiseNodes()
Initialize nodes and edges.
NodeID getGlobalVarField(const GlobalVariable *gvar, u32_t offset, SVFType *tpy)
void addVariantGepEdge(NodeID src, NodeID dst, const AccessPath &ap)
Add Variant(Gep) edge.
void visitVACopyInst(VACopyInst &)
NodeID getReturnNode(const SVFFunction *func)
getReturnNode - Return the node representing the unique return value of a function.
GepStmt * addVariantGepStmt(NodeID src, NodeID dst, const AccessPath &ap)
Add Variant(Gep) edge.
Definition SVFIR.cpp:366
CopyStmt * addCopyStmt(NodeID src, NodeID dst, CopyStmt::CopyKind type)
Add Copy edge.
Definition SVFIR.cpp:65
RetPE * addRetPE(NodeID src, NodeID dst, const CallICFGNode *cs, const FunExitICFGNode *exit)
Add Return edge.
Definition SVFIR.cpp:260
GepStmt * addGepStmt(NodeID src, NodeID dst, const AccessPath &ap, bool constGep)
Add Gep edge.
Definition SVFIR.cpp:328
SVFStmt * addBlackHoleAddrStmt(NodeID node)
Set a pointer points-to black hole (e.g. int2ptr)
Definition SVFIR.cpp:278
LoadStmt * addLoadStmt(NodeID src, NodeID dst)
Add Load edge.
Definition SVFIR.cpp:205
GepStmt * addNormalGepStmt(NodeID src, NodeID dst, const AccessPath &ap)
Add Offset(Gep) edge.
Definition SVFIR.cpp:347
CallPE * addCallPE(NodeID src, NodeID dst, const CallICFGNode *cs, const FunEntryICFGNode *entry)
Add Call edge.
Definition SVFIR.cpp:242
TDJoinPE * addThreadJoinPE(NodeID src, NodeID dst, const CallICFGNode *cs, const FunExitICFGNode *exit)
Add Thread join edge for parameter passing.
Definition SVFIR.cpp:307
CmpStmt * addCmpStmt(NodeID op1, NodeID op2, NodeID dst, u32_t predict)
Add Copy edge.
Definition SVFIR.cpp:128
AddrStmt * addAddrStmt(NodeID src, NodeID dst)
Add an edge into SVFIR.
Definition SVFIR.cpp:47
UnaryOPStmt * addUnaryOPStmt(NodeID src, NodeID dst, u32_t opcode)
Add Unary edge.
Definition SVFIR.cpp:169
NodeID addConstantNullPtrValNode(const SVFValue *curInst, const NodeID i, const ICFGNode *icfgNode)
Definition SVFIR.h:595
TDForkPE * addThreadForkPE(NodeID src, NodeID dst, const CallICFGNode *cs, const FunEntryICFGNode *entry)
Add Thread fork edge for parameter passing.
Definition SVFIR.cpp:289
BinaryOPStmt * addBinaryOPStmt(NodeID op1, NodeID op2, NodeID dst, u32_t opcode)
Add Copy edge.
Definition SVFIR.cpp:149
StoreStmt * addStoreStmt(NodeID src, NodeID dst, const ICFGNode *val)
Add Store edge.
Definition SVFIR.cpp:224
PhiStmt * addPhiStmt(NodeID res, NodeID opnd, const ICFGNode *pred)
Add phi node information.
Definition SVFIR.cpp:83
SelectStmt * addSelectStmt(NodeID res, NodeID op1, NodeID op2, NodeID cond)
Add SelectStmt.
Definition SVFIR.cpp:107
BranchStmt * addBranchStmt(NodeID br, NodeID cond, const BranchStmt::SuccAndCondPairVec &succs)
Add BranchStmt.
Definition SVFIR.cpp:187
std::string wrnMsg(const std::string &msg)
Returns warning message by converting a string into yellow string output.
Definition SVFUtil.cpp:62
for isBitcode
Definition BasicTypes.h:68
llvm::DataLayout DataLayout
Definition BasicTypes.h:108
llvm::GlobalVariable GlobalVariable
Definition BasicTypes.h:130
llvm::VACopyInst VACopyInst
Definition BasicTypes.h:176
llvm::Type Type
Definition BasicTypes.h:83
llvm::CallBase CallBase
Definition BasicTypes.h:146
llvm::BasicBlock BasicBlock
Definition BasicTypes.h:86
llvm::UnaryOperator UnaryOperator
Definition BasicTypes.h:180
llvm::AllocaInst AllocaInst
Definition BasicTypes.h:150
llvm::SwitchInst SwitchInst
Definition BasicTypes.h:155
u32_t NodeID
Definition GeneralType.h:55
llvm::AtomicRMWInst AtomicRMWInst
Definition BasicTypes.h:152
llvm::InsertValueInst InsertValueInst
Definition BasicTypes.h:167
llvm::InvokeInst InvokeInst
Definition BasicTypes.h:163
llvm::AtomicCmpXchgInst AtomicCmpXchgInst
Definition BasicTypes.h:151
llvm::LoadInst LoadInst
Definition BasicTypes.h:149
s64_t APOffset
Definition GeneralType.h:60
llvm::CmpInst CmpInst
Definition BasicTypes.h:159
llvm::Function Function
Definition BasicTypes.h:85
llvm::FenceInst FenceInst
Definition BasicTypes.h:168
llvm::ShuffleVectorInst ShuffleVectorInst
Definition BasicTypes.h:164
llvm::InsertElementInst InsertElementInst
Definition BasicTypes.h:171
llvm::Instruction Instruction
Definition BasicTypes.h:87
llvm::Constant Constant
Definition BasicTypes.h:124
llvm::UnreachableInst UnreachableInst
Definition BasicTypes.h:170
llvm::ResumeInst ResumeInst
Definition BasicTypes.h:173
llvm::Value Value
LLVM Basic classes.
Definition BasicTypes.h:82
llvm::ConstantPointerNull ConstantPointerNull
Definition BasicTypes.h:127
llvm::ConstantExpr ConstantExpr
Definition BasicTypes.h:120
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:74
llvm::CastInst CastInst
Definition BasicTypes.h:158
llvm::FreezeInst FreezeInst
Definition BasicTypes.h:169
llvm::BinaryOperator BinaryOperator
Definition BasicTypes.h:179
llvm::StoreInst StoreInst
Definition BasicTypes.h:148
llvm::SelectInst SelectInst
Definition BasicTypes.h:174
llvm::VAArgInst VAArgInst
Definition BasicTypes.h:175
llvm::GetElementPtrInst GetElementPtrInst
Definition BasicTypes.h:162
llvm::CallBrInst CallBrInst
Definition BasicTypes.h:156
llvm::ReturnInst ReturnInst
Definition BasicTypes.h:157
llvm::PHINode PHINode
Definition BasicTypes.h:165
llvm::BranchInst BranchInst
Definition BasicTypes.h:154
llvm::ExtractValueInst ExtractValueInst
Definition BasicTypes.h:160
unsigned u32_t
Definition GeneralType.h:46
llvm::VAStartInst VAStartInst
Definition BasicTypes.h:178
llvm::VAEndInst VAEndInst
Definition BasicTypes.h:177
llvm::CallInst CallInst
Definition BasicTypes.h:147
llvm::LandingPadInst LandingPadInst
Definition BasicTypes.h:172
llvm::ExtractElementInst ExtractElementInst
Definition BasicTypes.h:161
llvm::User User
Definition BasicTypes.h:142
llvm::LLVMContext LLVMContext
Definition BasicTypes.h:70