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
300
303 {
304 if(AddrStmt *edge = pag->addAddrStmt(src, dst))
305 {
307 return edge;
308 }
309 return nullptr;
310 }
311
313 inline AddrStmt* addAddrWithStackArraySz(NodeID src, NodeID dst, llvm::AllocaInst& inst)
314 {
315 AddrStmt* edge = addAddrEdge(src, dst);
316 if (inst.getArraySize())
317 {
318 edge->addArrSize(pag->getGNode(getValueNode(inst.getArraySize())));
319 }
320 return edge;
321 }
322
324 inline AddrStmt* addAddrWithHeapSz(NodeID src, NodeID dst, const CallBase* cs)
325 {
326 // get name of called function
327 AddrStmt* edge = addAddrEdge(src, dst);
328
329 llvm::Function* calledFunc = cs->getCalledFunction();
330 std::string functionName;
331 if (calledFunc)
332 {
333 functionName = calledFunc->getName().str();
334 }
335 else
336 {
337 SVFUtil::wrnMsg("not support indirect call to add AddrStmt.\n");
338 }
339 if (functionName == "malloc")
340 {
341 if (cs->arg_size() > 0)
342 {
343 const llvm::Value* val = cs->getArgOperand(0);
344 edge->addArrSize(pag->getGNode(getValueNode(val)));
345 }
346 }
347 // Check if the function called is 'calloc' and process its arguments.
348 // e.g. "%5 = call i8* @calloc(1, 8)", edge should add two SVFValue (1 and 8)
349 else if (functionName == "calloc")
350 {
351 if (cs->arg_size() > 1)
352 {
353 edge->addArrSize(
354 pag->getGNode(getValueNode(cs->getArgOperand(0))));
355 edge->addArrSize(
356 pag->getGNode(getValueNode(cs->getArgOperand(1))));
357 }
358 }
359 else
360 {
361 if (cs->arg_size() > 0)
362 {
363 const llvm::Value* val = cs->getArgOperand(0);
364 edge->addArrSize(pag->getGNode(getValueNode(val)));
365 }
366 }
367 return edge;
368 }
369
371 {
372 if(CopyStmt *edge = pag->addCopyStmt(src, dst, kind))
373 {
375 return edge;
376 }
377 return nullptr;
378 }
379
381 {
382 // COPYVAL, ZEXT, SEXT, BITCAST, FPTRUNC, FPTOUI, FPTOSI, UITOFP, SITOFP, INTTOPTR, PTRTOINT
383 if (const Instruction* inst = SVFUtil::dyn_cast<Instruction>(val))
384 {
385 switch (inst->getOpcode())
386 {
387 case Instruction::ZExt:
388 return CopyStmt::ZEXT;
389 case Instruction::SExt:
390 return CopyStmt::SEXT;
391 case Instruction::BitCast:
392 return CopyStmt::BITCAST;
393 case Instruction ::Trunc:
394 return CopyStmt::TRUNC;
395 case Instruction::FPTrunc:
396 return CopyStmt::FPTRUNC;
397 case Instruction::FPToUI:
398 return CopyStmt::FPTOUI;
399 case Instruction::FPToSI:
400 return CopyStmt::FPTOSI;
401 case Instruction::UIToFP:
402 return CopyStmt::UITOFP;
403 case Instruction::SIToFP:
404 return CopyStmt::SITOFP;
405 case Instruction::IntToPtr:
406 return CopyStmt::INTTOPTR;
407 case Instruction::PtrToInt:
408 return CopyStmt::PTRTOINT;
409 default:
410 return CopyStmt::COPYVAL;
411 }
412 }
413 assert (false && "Unknown cast inst!");
414 abort();
415 }
416
418 inline void addPhiStmt(NodeID res, NodeID opnd, const ICFGNode* pred)
419 {
421 if(PhiStmt *edge = pag->addPhiStmt(res,opnd,pred))
423 }
425 inline void addSelectStmt(NodeID res, NodeID op1, NodeID op2, NodeID cond)
426 {
427 if(SelectStmt *edge = pag->addSelectStmt(res,op1,op2,cond))
429 }
437 inline void addBinaryOPEdge(NodeID op1, NodeID op2, NodeID dst, u32_t opcode)
438 {
439 if(BinaryOPStmt *edge = pag->addBinaryOPStmt(op1, op2, dst, opcode))
441 }
443 inline void addUnaryOPEdge(NodeID src, NodeID dst, u32_t opcode)
444 {
445 if(UnaryOPStmt *edge = pag->addUnaryOPStmt(src, dst, opcode))
447 }
455 inline void addLoadEdge(NodeID src, NodeID dst)
456 {
457 if(LoadStmt *edge = pag->addLoadStmt(src, dst))
459 }
461 inline void addStoreEdge(NodeID src, NodeID dst)
462 {
463 ICFGNode* node;
464 if (const Instruction* inst = SVFUtil::dyn_cast<Instruction>(curVal))
465 node = llvmModuleSet()->getICFGNode(
466 SVFUtil::cast<Instruction>(inst));
467 else
468 node = nullptr;
469 if (StoreStmt* edge = pag->addStoreStmt(src, dst, node))
471 }
473 inline void addCallEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunEntryICFGNode* entry)
474 {
475 if (CallPE* edge = pag->addCallPE(src, dst, cs, entry))
477 }
479 inline void addRetEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunExitICFGNode* exit)
480 {
481 if (RetPE* edge = pag->addRetPE(src, dst, cs, exit))
483 }
485 inline void addGepEdge(NodeID src, NodeID dst, const AccessPath& ap, bool constGep)
486 {
487 if (GepStmt* edge = pag->addGepStmt(src, dst, ap, constGep))
489 }
491 inline void addNormalGepEdge(NodeID src, NodeID dst, const AccessPath& ap)
492 {
493 if (GepStmt* edge = pag->addNormalGepStmt(src, dst, ap))
495 }
497 inline void addVariantGepEdge(NodeID src, NodeID dst, const AccessPath& ap)
498 {
499 if (GepStmt* edge = pag->addVariantGepStmt(src, dst, ap))
501 }
503 inline void addThreadForkEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunEntryICFGNode* entry)
504 {
505 if (TDForkPE* edge = pag->addThreadForkPE(src, dst, cs, entry))
507 }
509 inline void addThreadJoinEdge(NodeID src, NodeID dst, const CallICFGNode* cs, const FunExitICFGNode* exit)
510 {
511 if (TDJoinPE* edge = pag->addThreadJoinPE(src, dst, cs, exit))
513 }
515
517
518private:
523};
524
525} // End namespace SVF
526
527#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.
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:450
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:333
GepStmt * addGepStmt(NodeID src, NodeID dst, const AccessPath &ap, bool constGep)
Add Gep edge.
Definition SVFIR.cpp:404
SVFStmt * addBlackHoleAddrStmt(NodeID node)
Set a pointer points-to black hole (e.g. int2ptr)
Definition SVFIR.cpp:356
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:423
CallPE * addCallPE(NodeID src, NodeID dst, const CallICFGNode *cs, const FunEntryICFGNode *entry)
Add Call edge.
Definition SVFIR.cpp:310
NodeID addConstantNullPtrValNode(const NodeID i, const ICFGNode *icfgNode, const SVFType *type)
Definition SVFIR.h:624
TDJoinPE * addThreadJoinPE(NodeID src, NodeID dst, const CallICFGNode *cs, const FunExitICFGNode *exit)
Add Thread join edge for parameter passing.
Definition SVFIR.cpp:384
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:367
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: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