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 friend class GraphDBSVFIRBuilder;
50
51private:
54 const Value* curVal;
55
56public:
62 virtual ~SVFIRBuilder()
63 {
64 }
65
67 virtual SVFIR* build();
68
70 SVFIR* getPAG() const
71 {
72 return pag;
73 }
74
75 void createFunObjVars();
76 void initFunObjVar();
77
79
80 void initialiseNodes();
82 void initialiseValVars();
83
84 void initSVFBasicBlock(const Function* func);
85
86 void initDomTree(FunObjVar* func, const Function* f);
87
88 void addEdge(NodeID src, NodeID dst, SVFStmt::PEDGEK kind,
89 APOffset offset = 0, Instruction* cs = nullptr);
90 // @}
91
93 void sanityCheck();
94
96
97 // GetValNode - Return the value node according to a LLVM Value.
99 {
100 // first handle gep edge if val if a constant expression
101 processCE(V);
102
103 // strip off the constant cast and return the value node
104 return llvmModuleSet()->getValueNode(V);
105 }
106
109 {
110 return llvmModuleSet()->getObjectNode(V);
111 }
112
115 {
116 return pag->getReturnNode(func);
117 }
118
121 {
122 return pag->getVarargNode(func);
123 }
125
126
128
129 // Instructions that cannot be folded away.
130 virtual void visitAllocaInst(AllocaInst &AI);
131 void visitPHINode(PHINode &I);
132 void visitStoreInst(StoreInst &I);
133 void visitLoadInst(LoadInst &I);
135 void visitCallInst(CallInst &I);
138 void visitCallSite(CallBase* cs);
140 void visitCastInst(CastInst &I);
149 // TerminatorInst and UnwindInst have been removed since llvm-8.0.0
150 // void visitTerminatorInst(TerminatorInst &TI) {}
151 // void visitUnwindInst(UnwindInst &I) { /*returns void*/}
152
155 void visitCmpInst(CmpInst &I);
156
163
168
170
183
185 void visitResumeInst(ResumeInst&) /*returns void*/
186 {
187 }
188 void visitUnreachableInst(UnreachableInst&) /*returns void*/
189 {
190 }
191 void visitFenceInst(FenceInst &I) /*returns void*/
192 {
194 }
203
206 {
207 // If a new instruction is added to LLVM that we don't handle.
208 // TODO: ignore here:
209 }
210 //}@
211
213 void updateCallGraph(CallGraph* callgraph);
214
215protected:
217
218 void visitGlobal();
220 u32_t offset);
223
225 void processCE(const Value* val);
226
228 u32_t inferFieldIdxFromByteOffset(const llvm::GEPOperator* gepOp, DataLayout *dl, AccessPath& ap, APOffset idx);
229
231 bool computeGepOffset(const User *V, AccessPath& ap);
232
234 const Value* getBaseValueForExtArg(const Value* V);
235
237 void handleDirectCall(CallBase* cs, const Function *F);
238
240 void handleIndCall(CallBase* cs);
241
243
244 virtual const Type *getBaseTypeAndFlattenedFields(const Value *V, std::vector<AccessPath> &fields, const Value* szValue);
245 virtual void addComplexConsForExt(Value *D, Value *S, const Value* sz);
246 virtual void handleExtCall(const CallBase* cs, const Function* callee);
248
250 inline void setCurrentLocation(const Value* val, const BasicBlock* bb)
251 {
252 curBB = (bb == nullptr? nullptr : llvmModuleSet()->getSVFBasicBlock(bb));
253 curVal = (val == nullptr ? nullptr: val);
254 }
255 inline void setCurrentLocation(const Value* val, const SVFBasicBlock* bb)
256 {
257 curBB = bb;
258 curVal = val;
259 }
260 inline const Value* getCurrentValue() const
261 {
262 return curVal;
263 }
264 inline const SVFBasicBlock* getCurrentBB() const
265 {
266 return curBB;
267 }
268
278
281 {
283 ConstantPointerNull* constNull = ConstantPointerNull::get(PointerType::getUnqual(cxt));
284 NodeID nullPtr = pag->addConstantNullPtrValNode(pag->getNullPtr(), nullptr, llvmModuleSet()->getSVFType(constNull->getType()));
288 return nullPtr;
289 }
290
291 NodeID getGepValVar(const Value* val, const AccessPath& ap, const SVFType* elementType);
292
294
296
302
305 {
306 if(AddrStmt *edge = pag->addAddrStmt(src, dst))
307 {
309 return edge;
310 }
311 return nullptr;
312 }
313
315 inline AddrStmt* addAddrWithStackArraySz(NodeID src, NodeID dst, llvm::AllocaInst& inst)
316 {
317 AddrStmt* edge = addAddrEdge(src, dst);
318 if (inst.getArraySize())
319 {
320 edge->addArrSize(pag->getGNode(getValueNode(inst.getArraySize())));
321 }
322 return edge;
323 }
324
326 inline AddrStmt* addAddrWithHeapSz(NodeID src, NodeID dst, const CallBase* cs)
327 {
328 // get name of called function
329 AddrStmt* edge = addAddrEdge(src, dst);
330
331 llvm::Function* calledFunc = cs->getCalledFunction();
332 std::string functionName;
333 if (calledFunc)
334 {
335 functionName = calledFunc->getName().str();
336 }
337 else
338 {
339 SVFUtil::wrnMsg("not support indirect call to add AddrStmt.\n");
340 }
341 if (functionName == "malloc")
342 {
343 if (cs->arg_size() > 0)
344 {
345 const llvm::Value* val = cs->getArgOperand(0);
346 edge->addArrSize(pag->getGNode(getValueNode(val)));
347 }
348 }
349 // Check if the function called is 'calloc' and process its arguments.
350 // e.g. "%5 = call i8* @calloc(1, 8)", edge should add two SVFValue (1 and 8)
351 else if (functionName == "calloc")
352 {
353 if (cs->arg_size() > 1)
354 {
355 edge->addArrSize(
356 pag->getGNode(getValueNode(cs->getArgOperand(0))));
357 edge->addArrSize(
358 pag->getGNode(getValueNode(cs->getArgOperand(1))));
359 }
360 }
361 else
362 {
363 if (cs->arg_size() > 0)
364 {
365 const llvm::Value* val = cs->getArgOperand(0);
366 edge->addArrSize(pag->getGNode(getValueNode(val)));
367 }
368 }
369 return edge;
370 }
371
373 {
374 if(CopyStmt *edge = pag->addCopyStmt(src, dst, kind))
375 {
377 return edge;
378 }
379 return nullptr;
380 }
381
383 {
384 // COPYVAL, ZEXT, SEXT, BITCAST, FPTRUNC, FPTOUI, FPTOSI, UITOFP, SITOFP, INTTOPTR, PTRTOINT
385 if (const Instruction* inst = SVFUtil::dyn_cast<Instruction>(val))
386 {
387 switch (inst->getOpcode())
388 {
389 case Instruction::ZExt:
390 return CopyStmt::ZEXT;
391 case Instruction::SExt:
392 return CopyStmt::SEXT;
393 case Instruction::BitCast:
394 return CopyStmt::BITCAST;
395 case Instruction ::Trunc:
396 return CopyStmt::TRUNC;
397 case Instruction::FPTrunc:
398 return CopyStmt::FPTRUNC;
399 case Instruction::FPToUI:
400 return CopyStmt::FPTOUI;
401 case Instruction::FPToSI:
402 return CopyStmt::FPTOSI;
403 case Instruction::UIToFP:
404 return CopyStmt::UITOFP;
405 case Instruction::SIToFP:
406 return CopyStmt::SITOFP;
407 case Instruction::IntToPtr:
408 return CopyStmt::INTTOPTR;
409 case Instruction::PtrToInt:
410 return CopyStmt::PTRTOINT;
411 default:
412 return CopyStmt::COPYVAL;
413 }
414 }
415 assert (false && "Unknown cast inst!");
416 abort();
417 }
418
420 inline void addPhiStmt(NodeID res, NodeID opnd, const ICFGNode* pred)
421 {
423 if(PhiStmt *edge = pag->addPhiStmt(res,opnd,pred))
425 }
427 inline void addSelectStmt(NodeID res, NodeID op1, NodeID op2, NodeID cond)
428 {
429 if(SelectStmt *edge = pag->addSelectStmt(res,op1,op2,cond))
431 }
439 inline void addBinaryOPEdge(NodeID op1, NodeID op2, NodeID dst, u32_t opcode)
440 {
441 if(BinaryOPStmt *edge = pag->addBinaryOPStmt(op1, op2, dst, opcode))
443 }
445 inline void addUnaryOPEdge(NodeID src, NodeID dst, u32_t opcode)
446 {
447 if(UnaryOPStmt *edge = pag->addUnaryOPStmt(src, dst, opcode))
449 }
457 inline void addLoadEdge(NodeID src, NodeID dst)
458 {
459 if(LoadStmt *edge = pag->addLoadStmt(src, dst))
461 }
463 inline void addStoreEdge(NodeID src, NodeID dst)
464 {
465 ICFGNode* node;
466 if (const Instruction* inst = SVFUtil::dyn_cast<Instruction>(curVal))
467 node = llvmModuleSet()->getICFGNode(
468 SVFUtil::cast<Instruction>(inst));
469 else
470 node = nullptr;
471 if (StoreStmt* edge = pag->addStoreStmt(src, dst, node))
473 }
475 inline void addCallEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunEntryICFGNode* entry)
476 {
477 if (CallPE* edge = pag->addCallPE(src, dst, cs, entry))
479 }
481 inline void addRetEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunExitICFGNode* exit)
482 {
483 if (RetPE* edge = pag->addRetPE(src, dst, cs, exit))
485 }
487 inline void addGepEdge(NodeID src, NodeID dst, const AccessPath& ap, bool constGep)
488 {
489 if (GepStmt* edge = pag->addGepStmt(src, dst, ap, constGep))
491 }
493 inline void addNormalGepEdge(NodeID src, NodeID dst, const AccessPath& ap)
494 {
495 if (GepStmt* edge = pag->addNormalGepStmt(src, dst, ap))
497 }
499 inline void addVariantGepEdge(NodeID src, NodeID dst, const AccessPath& ap)
500 {
501 if (GepStmt* edge = pag->addVariantGepStmt(src, dst, ap))
503 }
505 inline void addThreadForkEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunEntryICFGNode* entry)
506 {
507 if (TDForkPE* edge = pag->addThreadForkPE(src, dst, cs, entry))
509 }
511 inline void addThreadJoinEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunExitICFGNode* exit)
512 {
513 if (TDJoinPE* edge = pag->addThreadJoinPE(src, dst, cs, exit))
515 }
517
519
520private:
525};
526
527} // End namespace SVF
528
529#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)
friend class GraphDBSVFIRBuilder
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.
NodeID getDirectAccessFieldZeroValVar(const Value *ptr, const Type *accessTy)
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:464
CopyStmt * addCopyStmt(NodeID src, NodeID dst, CopyStmt::CopyKind type)
Add Copy edge.
Definition SVFIR.cpp:85
RetPE * addRetPE(NodeID src, NodeID dst, const CallICFGNode *cs, const FunExitICFGNode *exit)
Add Return edge.
Definition SVFIR.cpp:340
GepStmt * addGepStmt(NodeID src, NodeID dst, const AccessPath &ap, bool constGep)
Add Gep edge.
Definition SVFIR.cpp:418
SVFStmt * addBlackHoleAddrStmt(NodeID node)
Set a pointer points-to black hole (e.g. int2ptr)
Definition SVFIR.cpp:363
LoadStmt * addLoadStmt(NodeID src, NodeID dst)
Add Load edge.
Definition SVFIR.cpp:263
GepStmt * addNormalGepStmt(NodeID src, NodeID dst, const AccessPath &ap)
Add Offset(Gep) edge.
Definition SVFIR.cpp:437
CallPE * addCallPE(NodeID src, NodeID dst, const CallICFGNode *cs, const FunEntryICFGNode *entry)
Add Call edge (phi-like: merges actual params from all call sites into formal param)
Definition SVFIR.cpp:310
NodeID addConstantNullPtrValNode(const NodeID i, const ICFGNode *icfgNode, const SVFType *type)
Definition SVFIR.h:696
TDJoinPE * addThreadJoinPE(NodeID src, NodeID dst, const CallICFGNode *cs, const FunExitICFGNode *exit)
Add Thread join edge for parameter passing.
Definition SVFIR.cpp:398
CmpStmt * addCmpStmt(NodeID op1, NodeID op2, NodeID dst, u32_t predict)
Add Copy edge.
Definition SVFIR.cpp:167
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:217
TDForkPE * addThreadForkPE(NodeID src, NodeID dst, const CallICFGNode *cs, const FunEntryICFGNode *entry)
Add Thread fork edge for parameter passing.
Definition SVFIR.cpp:374
BinaryOPStmt * addBinaryOPStmt(NodeID op1, NodeID op2, NodeID dst, u32_t opcode)
Add Copy edge.
Definition SVFIR.cpp:193
StoreStmt * addStoreStmt(NodeID src, NodeID dst, const ICFGNode *val)
Add Store edge.
Definition SVFIR.cpp:287
PhiStmt * addPhiStmt(NodeID res, NodeID opnd, const ICFGNode *pred)
Add phi node information.
Definition SVFIR.cpp:108
SelectStmt * addSelectStmt(NodeID res, NodeID op1, NodeID op2, NodeID cond)
Add SelectStmt.
Definition SVFIR.cpp:141
BranchStmt * addBranchStmt(NodeID br, NodeID cond, const BranchStmt::SuccAndCondPairVec &succs)
Add BranchStmt.
Definition SVFIR.cpp:240
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:70
llvm::DataLayout DataLayout
Definition BasicTypes.h:112
llvm::GlobalVariable GlobalVariable
Definition BasicTypes.h:137
llvm::VACopyInst VACopyInst
Definition BasicTypes.h:183
llvm::Type Type
Definition BasicTypes.h:87
llvm::CallBase CallBase
Definition BasicTypes.h:153
llvm::BasicBlock BasicBlock
Definition BasicTypes.h:90
llvm::UnaryOperator UnaryOperator
Definition BasicTypes.h:187
llvm::AllocaInst AllocaInst
Definition BasicTypes.h:157
llvm::SwitchInst SwitchInst
Definition BasicTypes.h:162
u32_t NodeID
Definition GeneralType.h:56
llvm::AtomicRMWInst AtomicRMWInst
Definition BasicTypes.h:159
llvm::InsertValueInst InsertValueInst
Definition BasicTypes.h:174
llvm::InvokeInst InvokeInst
Definition BasicTypes.h:170
llvm::AtomicCmpXchgInst AtomicCmpXchgInst
Definition BasicTypes.h:158
llvm::LoadInst LoadInst
Definition BasicTypes.h:156
s64_t APOffset
Definition GeneralType.h:60
llvm::CmpInst CmpInst
Definition BasicTypes.h:166
llvm::Function Function
Definition BasicTypes.h:89
llvm::FenceInst FenceInst
Definition BasicTypes.h:175
llvm::ShuffleVectorInst ShuffleVectorInst
Definition BasicTypes.h:171
llvm::InsertElementInst InsertElementInst
Definition BasicTypes.h:178
llvm::Instruction Instruction
Definition BasicTypes.h:91
llvm::Constant Constant
Definition BasicTypes.h:128
llvm::UnreachableInst UnreachableInst
Definition BasicTypes.h:177
llvm::ResumeInst ResumeInst
Definition BasicTypes.h:180
llvm::Value Value
LLVM Basic classes.
Definition BasicTypes.h:86
llvm::ConstantPointerNull ConstantPointerNull
Definition BasicTypes.h:131
llvm::ConstantExpr ConstantExpr
Definition BasicTypes.h:124
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:76
llvm::CastInst CastInst
Definition BasicTypes.h:165
llvm::FreezeInst FreezeInst
Definition BasicTypes.h:176
llvm::BinaryOperator BinaryOperator
Definition BasicTypes.h:186
llvm::StoreInst StoreInst
Definition BasicTypes.h:155
llvm::SelectInst SelectInst
Definition BasicTypes.h:181
llvm::VAArgInst VAArgInst
Definition BasicTypes.h:182
llvm::GetElementPtrInst GetElementPtrInst
Definition BasicTypes.h:169
llvm::CallBrInst CallBrInst
Definition BasicTypes.h:163
llvm::ReturnInst ReturnInst
Definition BasicTypes.h:164
llvm::PHINode PHINode
Definition BasicTypes.h:172
llvm::BranchInst BranchInst
Definition BasicTypes.h:161
llvm::ExtractValueInst ExtractValueInst
Definition BasicTypes.h:167
unsigned u32_t
Definition GeneralType.h:47
llvm::VAStartInst VAStartInst
Definition BasicTypes.h:185
llvm::VAEndInst VAEndInst
Definition BasicTypes.h:184
llvm::CallInst CallInst
Definition BasicTypes.h:154
llvm::LandingPadInst LandingPadInst
Definition BasicTypes.h:179
llvm::ExtractElementInst ExtractElementInst
Definition BasicTypes.h:168
llvm::User User
Definition BasicTypes.h:149
llvm::LLVMContext LLVMContext
Definition BasicTypes.h:72