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 * Refactored on: Jan 25, 2024
29 * Author: Xiao Cheng, Yulei Sui
30 */
31
32#ifndef PAGBUILDER_H_
33#define PAGBUILDER_H_
34
35#include "SVFIR/SVFIR.h"
36#include "SVF-LLVM/BasicTypes.h"
38#include "SVF-LLVM/LLVMModule.h"
39#include "SVF-LLVM/LLVMUtil.h"
40
41namespace SVF
42{
43
47class SVFIRBuilder: public llvm::InstVisitor<SVFIRBuilder>
48{
49
50private:
53 const Value* curVal;
54
55public:
61 virtual ~SVFIRBuilder()
62 {
63 }
64
66 virtual SVFIR* build();
67
69 SVFIR* getPAG() const
70 {
71 return pag;
72 }
73
74 void createFunObjVars();
75 void initFunObjVar();
76
78
79 void initialiseNodes();
81 void initialiseValVars();
82
83 void initSVFBasicBlock(const Function* func);
84
85 void initDomTree(FunObjVar* func, const Function* f);
86
87 void addEdge(NodeID src, NodeID dst, SVFStmt::PEDGEK kind,
88 APOffset offset = 0, Instruction* cs = nullptr);
89 // @}
90
92 void sanityCheck();
93
95
96 // GetValNode - Return the value node according to a LLVM Value.
98 {
99 // first handle gep edge if val if a constant expression
100 processCE(V);
101
102 // strip off the constant cast and return the value node
103 return llvmModuleSet()->getValueNode(V);
104 }
105
108 {
109 return llvmModuleSet()->getObjectNode(V);
110 }
111
114 {
115 return pag->getReturnNode(func);
116 }
117
120 {
121 return pag->getVarargNode(func);
122 }
124
125
127
128 // Instructions that cannot be folded away.
129 virtual void visitAllocaInst(AllocaInst &AI);
130 void visitPHINode(PHINode &I);
131 void visitStoreInst(StoreInst &I);
132 void visitLoadInst(LoadInst &I);
134 void visitCallInst(CallInst &I);
137 void visitCallSite(CallBase* cs);
139 void visitCastInst(CastInst &I);
148 // TerminatorInst and UnwindInst have been removed since llvm-8.0.0
149 // void visitTerminatorInst(TerminatorInst &TI) {}
150 // void visitUnwindInst(UnwindInst &I) { /*returns void*/}
151
154 void visitCmpInst(CmpInst &I);
155
162
167
169
182
184 void visitResumeInst(ResumeInst&) /*returns void*/
185 {
186 }
187 void visitUnreachableInst(UnreachableInst&) /*returns void*/
188 {
189 }
190 void visitFenceInst(FenceInst &I) /*returns void*/
191 {
193 }
202
205 {
206 // If a new instruction is added to LLVM that we don't handle.
207 // TODO: ignore here:
208 }
209 //}@
210
212 void updateCallGraph(CallGraph* callgraph);
213
214protected:
216
217 void visitGlobal();
219 u32_t offset);
222
224 void processCE(const Value* val);
225
227 u32_t inferFieldIdxFromByteOffset(const llvm::GEPOperator* gepOp, DataLayout *dl, AccessPath& ap, APOffset idx);
228
230 bool computeGepOffset(const User *V, AccessPath& ap);
231
233 const Value* getBaseValueForExtArg(const Value* V);
234
236 void handleDirectCall(CallBase* cs, const Function *F);
237
239 void handleIndCall(CallBase* cs);
240
242
243 virtual const Type *getBaseTypeAndFlattenedFields(const Value *V, std::vector<AccessPath> &fields, const Value* szValue);
244 virtual void addComplexConsForExt(Value *D, Value *S, const Value* sz);
245 virtual void handleExtCall(const CallBase* cs, const Function* callee);
247
249 inline void setCurrentLocation(const Value* val, const BasicBlock* bb)
250 {
251 curBB = (bb == nullptr? nullptr : llvmModuleSet()->getSVFBasicBlock(bb));
252 curVal = (val == nullptr ? nullptr: val);
253 }
254 inline void setCurrentLocation(const Value* val, const SVFBasicBlock* bb)
255 {
256 curBB = bb;
257 curVal = val;
258 }
259 inline const Value* getCurrentValue() const
260 {
261 return curVal;
262 }
263 inline const SVFBasicBlock* getCurrentBB() const
264 {
265 return curBB;
266 }
267
277
280 {
282 ConstantPointerNull* constNull = ConstantPointerNull::get(PointerType::getUnqual(cxt));
283 NodeID nullPtr = pag->addConstantNullPtrValNode(pag->getNullPtr(), nullptr, llvmModuleSet()->getSVFType(constNull->getType()));
287 return nullPtr;
288 }
289
290 NodeID getGepValVar(const Value* val, const AccessPath& ap, const SVFType* elementType);
291
293
299
302 {
303 if(AddrStmt *edge = pag->addAddrStmt(src, dst))
304 {
306 return edge;
307 }
308 return nullptr;
309 }
310
312 inline AddrStmt* addAddrWithStackArraySz(NodeID src, NodeID dst, llvm::AllocaInst& inst)
313 {
314 AddrStmt* edge = addAddrEdge(src, dst);
315 if (inst.getArraySize())
316 {
317 edge->addArrSize(pag->getGNode(getValueNode(inst.getArraySize())));
318 }
319 return edge;
320 }
321
323 inline AddrStmt* addAddrWithHeapSz(NodeID src, NodeID dst, const CallBase* cs)
324 {
325 // get name of called function
326 AddrStmt* edge = addAddrEdge(src, dst);
327
328 llvm::Function* calledFunc = cs->getCalledFunction();
329 std::string functionName;
330 if (calledFunc)
331 {
332 functionName = calledFunc->getName().str();
333 }
334 else
335 {
336 SVFUtil::wrnMsg("not support indirect call to add AddrStmt.\n");
337 }
338 if (functionName == "malloc")
339 {
340 if (cs->arg_size() > 0)
341 {
342 const llvm::Value* val = cs->getArgOperand(0);
343 edge->addArrSize(pag->getGNode(getValueNode(val)));
344 }
345 }
346 // Check if the function called is 'calloc' and process its arguments.
347 // e.g. "%5 = call i8* @calloc(1, 8)", edge should add two SVFValue (1 and 8)
348 else if (functionName == "calloc")
349 {
350 if (cs->arg_size() > 1)
351 {
352 edge->addArrSize(
353 pag->getGNode(getValueNode(cs->getArgOperand(0))));
354 edge->addArrSize(
355 pag->getGNode(getValueNode(cs->getArgOperand(1))));
356 }
357 }
358 else
359 {
360 if (cs->arg_size() > 0)
361 {
362 const llvm::Value* val = cs->getArgOperand(0);
363 edge->addArrSize(pag->getGNode(getValueNode(val)));
364 }
365 }
366 return edge;
367 }
368
370 {
371 if(CopyStmt *edge = pag->addCopyStmt(src, dst, kind))
372 {
374 return edge;
375 }
376 return nullptr;
377 }
378
380 {
381 // COPYVAL, ZEXT, SEXT, BITCAST, FPTRUNC, FPTOUI, FPTOSI, UITOFP, SITOFP, INTTOPTR, PTRTOINT
382 if (const Instruction* inst = SVFUtil::dyn_cast<Instruction>(val))
383 {
384 switch (inst->getOpcode())
385 {
386 case Instruction::ZExt:
387 return CopyStmt::ZEXT;
388 case Instruction::SExt:
389 return CopyStmt::SEXT;
390 case Instruction::BitCast:
391 return CopyStmt::BITCAST;
392 case Instruction ::Trunc:
393 return CopyStmt::TRUNC;
394 case Instruction::FPTrunc:
395 return CopyStmt::FPTRUNC;
396 case Instruction::FPToUI:
397 return CopyStmt::FPTOUI;
398 case Instruction::FPToSI:
399 return CopyStmt::FPTOSI;
400 case Instruction::UIToFP:
401 return CopyStmt::UITOFP;
402 case Instruction::SIToFP:
403 return CopyStmt::SITOFP;
404 case Instruction::IntToPtr:
405 return CopyStmt::INTTOPTR;
406 case Instruction::PtrToInt:
407 return CopyStmt::PTRTOINT;
408 default:
409 return CopyStmt::COPYVAL;
410 }
411 }
412 assert (false && "Unknown cast inst!");
413 abort();
414 }
415
417 inline void addPhiStmt(NodeID res, NodeID opnd, const ICFGNode* pred)
418 {
420 if(PhiStmt *edge = pag->addPhiStmt(res,opnd,pred))
422 }
424 inline void addSelectStmt(NodeID res, NodeID op1, NodeID op2, NodeID cond)
425 {
426 if(SelectStmt *edge = pag->addSelectStmt(res,op1,op2,cond))
428 }
436 inline void addBinaryOPEdge(NodeID op1, NodeID op2, NodeID dst, u32_t opcode)
437 {
438 if(BinaryOPStmt *edge = pag->addBinaryOPStmt(op1, op2, dst, opcode))
440 }
442 inline void addUnaryOPEdge(NodeID src, NodeID dst, u32_t opcode)
443 {
444 if(UnaryOPStmt *edge = pag->addUnaryOPStmt(src, dst, opcode))
446 }
454 inline void addLoadEdge(NodeID src, NodeID dst)
455 {
456 if(LoadStmt *edge = pag->addLoadStmt(src, dst))
458 }
460 inline void addStoreEdge(NodeID src, NodeID dst)
461 {
462 ICFGNode* node;
463 if (const Instruction* inst = SVFUtil::dyn_cast<Instruction>(curVal))
464 node = llvmModuleSet()->getICFGNode(
465 SVFUtil::cast<Instruction>(inst));
466 else
467 node = nullptr;
468 if (StoreStmt* edge = pag->addStoreStmt(src, dst, node))
470 }
472 inline void addCallEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunEntryICFGNode* entry)
473 {
474 if (CallPE* edge = pag->addCallPE(src, dst, cs, entry))
476 }
478 inline void addRetEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunExitICFGNode* exit)
479 {
480 if (RetPE* edge = pag->addRetPE(src, dst, cs, exit))
482 }
484 inline void addGepEdge(NodeID src, NodeID dst, const AccessPath& ap, bool constGep)
485 {
486 if (GepStmt* edge = pag->addGepStmt(src, dst, ap, constGep))
488 }
490 inline void addNormalGepEdge(NodeID src, NodeID dst, const AccessPath& ap)
491 {
492 if (GepStmt* edge = pag->addNormalGepStmt(src, dst, ap))
494 }
496 inline void addVariantGepEdge(NodeID src, NodeID dst, const AccessPath& ap)
497 {
498 if (GepStmt* edge = pag->addVariantGepStmt(src, dst, ap))
500 }
502 inline void addThreadForkEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunEntryICFGNode* entry)
503 {
504 if (TDForkPE* edge = pag->addThreadForkPE(src, dst, cs, entry))
506 }
508 inline void addThreadJoinEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunExitICFGNode* exit)
509 {
510 if (TDJoinPE* edge = pag->addThreadJoinPE(src, dst, cs, exit))
512 }
514
516
517private:
522};
523
524} // End namespace SVF
525
526#endif /* PAGBUILDER_H_ */
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:255
NodeID getNullPtr() const
Definition IRGraph.h:259
NodeID getReturnNode(const FunObjVar *func) const
GetReturnNode - Return the unique node representing the return value of a function.
Definition IRGraph.cpp:60
NodeID getVarargNode(const FunObjVar *func) const
getVarargNode - Return the unique node representing the variadic argument of a variadic function.
Definition IRGraph.cpp:67
NodeID getValueNode(const Value *V)
static LLVMModuleSet * getLLVMModuleSet()
Definition LLVMModule.h:131
SVFBasicBlock * getSVFBasicBlock(const BasicBlock *bb)
Definition LLVMModule.h:298
void addToSVFVar2LLVMValueMap(const Value *val, SVFValue *svfBaseNode)
ICFGNode * getICFGNode(const Instruction *inst)
Get a basic block ICFGNode.
NodeID getObjectNode(const Value *V)
LLVMContext & getContext() const
Definition LLVMModule.h:381
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)
NodeID getVarargNode(const FunObjVar *func)
getVarargNode - Return the node representing the unique variadic argument of a function.
void addPhiStmt(NodeID res, NodeID opnd, const ICFGNode *pred)
Add Copy edge.
void updateCallGraph(CallGraph *callgraph)
connect PAG edges based on callgraph
void initSVFBasicBlock(const Function *func)
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.
void visitCallInst(CallInst &I)
void addLoadEdge(NodeID src, NodeID dst)
Add Load edge.
virtual void handleExtCall(const CallBase *cs, const Function *callee)
void visitGetElementPtrInst(GetElementPtrInst &I)
void visitBranchInst(BranchInst &I)
virtual void visitAllocaInst(AllocaInst &AI)
Our visit overrides.
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.
NodeID getReturnNode(const FunObjVar *func)
getReturnNode - Return the node representing the unique return value of a function.
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.
const Value * curVal
Current Value during SVFIR construction when visiting the module.
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)
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 initDomTree(FunObjVar *func, const Function *f)
void addRetEdge(NodeID src, NodeID dst, const CallICFGNode *cs, const FunExitICFGNode *exit)
Add Return edge.
void addBlackHoleAddrEdge(NodeID node)
SVFIRBuilder()
Constructor.
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 visitGlobal()
Handle globals including (global variable and functions)
void visitInsertElementInst(InsertElementInst &I)
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)
const Value * getCurrentValue() const
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)
void setCurrentLocation(const Value *val, const SVFBasicBlock *bb)
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.
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 &)
GepStmt * addVariantGepStmt(NodeID src, NodeID dst, const AccessPath &ap)
Add Variant(Gep) edge.
Definition SVFIR.cpp:382
CopyStmt * addCopyStmt(NodeID src, NodeID dst, CopyStmt::CopyKind type)
Add Copy edge.
Definition SVFIR.cpp:81
RetPE * addRetPE(NodeID src, NodeID dst, const CallICFGNode *cs, const FunExitICFGNode *exit)
Add Return edge.
Definition SVFIR.cpp:276
GepStmt * addGepStmt(NodeID src, NodeID dst, const AccessPath &ap, bool constGep)
Add Gep edge.
Definition SVFIR.cpp:344
SVFStmt * addBlackHoleAddrStmt(NodeID node)
Set a pointer points-to black hole (e.g. int2ptr)
Definition SVFIR.cpp:294
LoadStmt * addLoadStmt(NodeID src, NodeID dst)
Add Load edge.
Definition SVFIR.cpp:221
GepStmt * addNormalGepStmt(NodeID src, NodeID dst, const AccessPath &ap)
Add Offset(Gep) edge.
Definition SVFIR.cpp:363
CallPE * addCallPE(NodeID src, NodeID dst, const CallICFGNode *cs, const FunEntryICFGNode *entry)
Add Call edge.
Definition SVFIR.cpp:258
NodeID addConstantNullPtrValNode(const NodeID i, const ICFGNode *icfgNode, const SVFType *type)
Definition SVFIR.h:593
TDJoinPE * addThreadJoinPE(NodeID src, NodeID dst, const CallICFGNode *cs, const FunExitICFGNode *exit)
Add Thread join edge for parameter passing.
Definition SVFIR.cpp:323
CmpStmt * addCmpStmt(NodeID op1, NodeID op2, NodeID dst, u32_t predict)
Add Copy edge.
Definition SVFIR.cpp:144
AddrStmt * addAddrStmt(NodeID src, NodeID dst)
Add an edge into SVFIR.
Definition SVFIR.cpp:63
UnaryOPStmt * addUnaryOPStmt(NodeID src, NodeID dst, u32_t opcode)
Add Unary edge.
Definition SVFIR.cpp:185
TDForkPE * addThreadForkPE(NodeID src, NodeID dst, const CallICFGNode *cs, const FunEntryICFGNode *entry)
Add Thread fork edge for parameter passing.
Definition SVFIR.cpp:305
BinaryOPStmt * addBinaryOPStmt(NodeID op1, NodeID op2, NodeID dst, u32_t opcode)
Add Copy edge.
Definition SVFIR.cpp:165
StoreStmt * addStoreStmt(NodeID src, NodeID dst, const ICFGNode *val)
Add Store edge.
Definition SVFIR.cpp:240
PhiStmt * addPhiStmt(NodeID res, NodeID opnd, const ICFGNode *pred)
Add phi node information.
Definition SVFIR.cpp:99
SelectStmt * addSelectStmt(NodeID res, NodeID op1, NodeID op2, NodeID cond)
Add SelectStmt.
Definition SVFIR.cpp:123
BranchStmt * addBranchStmt(NodeID br, NodeID cond, const BranchStmt::SuccAndCondPairVec &succs)
Add BranchStmt.
Definition SVFIR.cpp:203
std::string wrnMsg(const std::string &msg)
Returns warning message by converting a string into yellow string output.
Definition SVFUtil.cpp:63
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:56
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:47
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