Home
last modified time | relevance | path

Searched refs:SymExpr (Results 1 – 25 of 51) sorted by relevance

123

/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DSymbolManager.cpp36 void SymExpr::anchor() {} in anchor()
44 LLVM_DUMP_METHOD void SymExpr::dump() const { dumpToStream(llvm::errs()); } in dump()
46 void BinarySymExpr::dumpToStreamImpl(raw_ostream &OS, const SymExpr *Sym) { in dumpToStreamImpl()
104 bool SymExpr::symbol_iterator::operator==(const symbol_iterator &X) const { in operator ==()
108 bool SymExpr::symbol_iterator::operator!=(const symbol_iterator &X) const { in operator !=()
112 SymExpr::symbol_iterator::symbol_iterator(const SymExpr *SE) { in symbol_iterator()
116 SymExpr::symbol_iterator &SymExpr::symbol_iterator::operator++() { in operator ++()
122 SymbolRef SymExpr::symbol_iterator::operator*() { in operator *()
127 void SymExpr::symbol_iterator::expand() { in expand()
128 const SymExpr *SE = itr.pop_back_val(); in expand()
[all …]
DSValBuilder.cpp67 NonLoc SValBuilder::makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op, in makeNonLoc()
78 BinaryOperator::Opcode op, const SymExpr *rhs, in makeNonLoc()
85 NonLoc SValBuilder::makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op, in makeNonLoc()
86 const SymExpr *rhs, QualType type) { in makeNonLoc()
92 NonLoc SValBuilder::makeNonLoc(const SymExpr *operand, in makeNonLoc()
/external/clang/lib/StaticAnalyzer/Core/
DSymbolManager.cpp24 void SymExpr::anchor() { } in anchor()
26 LLVM_DUMP_METHOD void SymExpr::dump() const { in dump()
91 bool SymExpr::symbol_iterator::operator==(const symbol_iterator &X) const { in operator ==()
95 bool SymExpr::symbol_iterator::operator!=(const symbol_iterator &X) const { in operator !=()
99 SymExpr::symbol_iterator::symbol_iterator(const SymExpr *SE) { in symbol_iterator()
103 SymExpr::symbol_iterator &SymExpr::symbol_iterator::operator++() { in operator ++()
109 SymbolRef SymExpr::symbol_iterator::operator*() { in operator *()
114 void SymExpr::symbol_iterator::expand() { in expand()
115 const SymExpr *SE = itr.pop_back_val(); in expand()
118 case SymExpr::SymbolRegionValueKind: in expand()
[all …]
DProgramState.cpp529 bool ScanReachableSymbols::scan(const SymExpr *sym) { in scan()
539 case SymExpr::SymbolRegionValueKind: in scan()
540 case SymExpr::SymbolConjuredKind: in scan()
541 case SymExpr::SymbolDerivedKind: in scan()
542 case SymExpr::SymbolExtentKind: in scan()
543 case SymExpr::SymbolMetadataKind: in scan()
545 case SymExpr::SymbolCastKind: in scan()
547 case SymExpr::SymIntExprKind: in scan()
549 case SymExpr::IntSymExprKind: in scan()
551 case SymExpr::SymSymExprKind: { in scan()
[all …]
DSValBuilder.cpp44 NonLoc SValBuilder::makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op, in makeNonLoc()
55 BinaryOperator::Opcode op, const SymExpr *rhs, in makeNonLoc()
62 NonLoc SValBuilder::makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op, in makeNonLoc()
63 const SymExpr *rhs, QualType type) { in makeNonLoc()
69 NonLoc SValBuilder::makeNonLoc(const SymExpr *operand, in makeNonLoc()
339 const SymExpr *symLHS = LHS.getAsSymExpr(); in makeSymExprValNN()
340 const SymExpr *symRHS = RHS.getAsSymExpr(); in makeSymExprValNN()
441 const SymExpr *se = val.getAsSymbolicExpression(); in evalIntegralCast()
DSVals.cpp121 const SymExpr *SVal::getAsSymbolicExpression() const { in getAsSymbolicExpression()
128 const SymExpr* SVal::getAsSymExpr() const { in getAsSymExpr()
129 const SymExpr* Sym = getAsSymbol(); in getAsSymExpr()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSymbolManager.h66 static inline bool classof(const SymExpr *SE) { in classof()
110 static inline bool classof(const SymExpr *SE) { in classof()
145 static inline bool classof(const SymExpr *SE) { in classof()
176 static inline bool classof(const SymExpr *SE) { in classof()
221 static inline bool classof(const SymExpr *SE) { in classof()
227 class SymbolCast : public SymExpr {
228 const SymExpr *Operand;
235 SymbolCast(const SymExpr *In, QualType From, QualType To) : in SymbolCast()
236 SymExpr(SymbolCastKind), Operand(In), FromTy(From), ToTy(To) { } in SymbolCast()
240 const SymExpr *getOperand() const { return Operand; } in getOperand()
[all …]
DSymExpr.h29 class SymExpr : public llvm::FoldingSetNode {
43 SymExpr(Kind k) : K(k) {} in SymExpr() function
46 virtual ~SymExpr() {} in ~SymExpr()
63 SmallVector<const SymExpr *, 5> itr;
68 symbol_iterator(const SymExpr *SE);
71 const SymExpr *operator*();
95 typedef const SymExpr *SymbolRef;
101 class SymbolData : public SymExpr {
106 SymbolData(Kind k, SymbolID sym) : SymExpr(k), Sym(sym) {} in SymbolData()
114 static inline bool classof(const SymExpr *SE) { in classof()
DSymbols.def1 //===-- Symbols.def - Metadata about SymExpr kinds --------------*- C++ -*-===//
10 // The list of symbols (SymExpr sub-classes) used in the Static Analyzer.
14 // SYMBOL(Id, Parent) - for specific SymExpr sub-classes, reserving the
37 ABSTRACT_SYMBOL(BinarySymExpr, SymExpr)
43 SYMBOL(SymbolCast, SymExpr)
45 ABSTRACT_SYMBOL(SymbolData, SymExpr)
DSValBuilder.h74 bool haveSameType(const SymExpr *Sym1, const SymExpr *Sym2) { in haveSameType()
281 NonLoc makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op,
285 const SymExpr *lhs, QualType type);
287 NonLoc makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op,
288 const SymExpr *rhs, QualType type);
291 NonLoc makeNonLoc(const SymExpr *operand, QualType fromTy, QualType toTy);
DSVals.h168 const SymExpr *getAsSymbolicExpression() const;
170 const SymExpr* getAsSymExpr() const;
177 SymExpr::symbol_iterator symbol_begin() const { in symbol_begin()
178 const SymExpr *SE = getAsSymbolicExpression(); in symbol_begin()
182 return SymExpr::symbol_iterator(); in symbol_begin()
185 SymExpr::symbol_iterator symbol_end() const { in symbol_end()
186 return SymExpr::symbol_end(); in symbol_end()
320 return (const SymExpr*) Data; in getSymbol()
/external/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DSymbolManager.h70 static bool classof(const SymExpr *SE) { in classof()
124 static bool classof(const SymExpr *SE) { in classof()
165 static bool classof(const SymExpr *SE) { in classof()
200 static bool classof(const SymExpr *SE) { in classof()
258 static bool classof(const SymExpr *SE) { in classof()
264 class SymbolCast : public SymExpr {
265 const SymExpr *Operand;
274 SymbolCast(const SymExpr *In, QualType From, QualType To) in SymbolCast()
275 : SymExpr(SymbolCastKind), Operand(In), FromTy(From), ToTy(To) { in SymbolCast()
290 const SymExpr *getOperand() const { return Operand; } in getOperand()
[all …]
DSymExpr.h29 class SymExpr : public llvm::FoldingSetNode {
43 SymExpr(Kind k) : K(k) {} in SymExpr() function
54 virtual ~SymExpr() = default;
71 SmallVector<const SymExpr *, 5> itr;
77 symbol_iterator(const SymExpr *SE);
80 const SymExpr *operator*();
105 const clang::ento::SymExpr *SE) {
110 using SymbolRef = const SymExpr *;
116 class SymbolData : public SymExpr {
122 SymbolData(Kind k, SymbolID sym) : SymExpr(k), Sym(sym) { in SymbolData()
[all …]
DSymbols.def1 //===-- Symbols.def - Metadata about SymExpr kinds --------------*- C++ -*-===//
9 // The list of symbols (SymExpr sub-classes) used in the Static Analyzer.
13 // SYMBOL(Id, Parent) - for specific SymExpr sub-classes, reserving the
36 ABSTRACT_SYMBOL(BinarySymExpr, SymExpr)
42 SYMBOL(SymbolCast, SymExpr)
44 ABSTRACT_SYMBOL(SymbolData, SymExpr)
DSValBuilder.h93 bool haveSameType(const SymExpr *Sym1, const SymExpr *Sym2) { in haveSameType()
322 NonLoc makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op,
326 const SymExpr *lhs, QualType type);
328 NonLoc makeNonLoc(const SymExpr *lhs, BinaryOperator::Opcode op,
329 const SymExpr *rhs, QualType type);
332 NonLoc makeNonLoc(const SymExpr *operand, QualType fromTy, QualType toTy);
DSVals.h193 SymExpr::symbol_iterator symbol_begin() const { in symbol_begin()
194 const SymExpr *SE = getAsSymbol(/*IncludeBaseRegions=*/true); in symbol_begin()
198 return SymExpr::symbol_iterator(); in symbol_begin()
201 SymExpr::symbol_iterator symbol_end() const { in symbol_end()
202 return SymExpr::symbol_end(); in symbol_end()
352 return (const SymExpr *) Data; in getSymbol()
/external/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCELFStreamer.cpp145 const MCSymbolRefExpr *SymExpr = static_cast<const MCSymbolRefExpr *>(Expr); in emitGOTToPCRelReloc() local
146 assert(SymExpr->getKind() == MCSymbolRefExpr::VK_PPC_PCREL_OPT && in emitGOTToPCRelReloc()
149 getContext().getOrCreateSymbol(SymExpr->getSymbol().getName()); in emitGOTToPCRelReloc()
180 const MCSymbolRefExpr *SymExpr = static_cast<const MCSymbolRefExpr *>(Expr); in emitGOTToPCRelLabel() local
181 assert(SymExpr->getKind() == MCSymbolRefExpr::VK_PPC_PCREL_OPT && in emitGOTToPCRelLabel()
184 getContext().getOrCreateSymbol(SymExpr->getSymbol().getName()); in emitGOTToPCRelLabel()
217 const MCSymbolRefExpr *SymExpr = static_cast<const MCSymbolRefExpr *>(Expr); in isPartOfGOTToPCRelPair() local
218 if (!SymExpr || SymExpr->getKind() != MCSymbolRefExpr::VK_PPC_PCREL_OPT) in isPartOfGOTToPCRelPair()
/external/llvm/lib/Target/NVPTX/
DNVPTXMCExpr.h86 const MCSymbolRefExpr *SymExpr;
89 : SymExpr(_SymExpr) {} in NVPTXGenericMCSymbolRefExpr()
96 *create(const MCSymbolRefExpr *SymExpr, MCContext &Ctx);
103 const MCSymbolRefExpr *getSymbolExpr() const { return SymExpr; } in getSymbolExpr()
DNVPTXMCExpr.cpp50 NVPTXGenericMCSymbolRefExpr::create(const MCSymbolRefExpr *SymExpr, in create() argument
52 return new (Ctx) NVPTXGenericMCSymbolRefExpr(SymExpr); in create()
58 SymExpr->print(OS, MAI); in printImpl()
/external/llvm-project/llvm/lib/Target/NVPTX/
DNVPTXMCExpr.h91 const MCSymbolRefExpr *SymExpr;
94 : SymExpr(_SymExpr) {} in NVPTXGenericMCSymbolRefExpr()
101 *create(const MCSymbolRefExpr *SymExpr, MCContext &Ctx);
108 const MCSymbolRefExpr *getSymbolExpr() const { return SymExpr; } in getSymbolExpr()
DNVPTXMCExpr.cpp54 NVPTXGenericMCSymbolRefExpr::create(const MCSymbolRefExpr *SymExpr, in create() argument
56 return new (Ctx) NVPTXGenericMCSymbolRefExpr(SymExpr); in create()
62 SymExpr->print(OS, MAI); in printImpl()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXMCExpr.h91 const MCSymbolRefExpr *SymExpr;
94 : SymExpr(_SymExpr) {} in NVPTXGenericMCSymbolRefExpr()
101 *create(const MCSymbolRefExpr *SymExpr, MCContext &Ctx);
108 const MCSymbolRefExpr *getSymbolExpr() const { return SymExpr; } in getSymbolExpr()
DNVPTXMCExpr.cpp54 NVPTXGenericMCSymbolRefExpr::create(const MCSymbolRefExpr *SymExpr, in create() argument
56 return new (Ctx) NVPTXGenericMCSymbolRefExpr(SymExpr); in create()
62 SymExpr->print(OS, MAI); in printImpl()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUMCInstLower.cpp79 const MCExpr *SymExpr = in lower() local
81 const MCExpr *Expr = MCBinaryExpr::createAdd(SymExpr, in lower()
/external/llvm/lib/Target/Sparc/MCTargetDesc/
DSparcMCCodeEmitter.cpp158 const MCSymbolRefExpr *SymExpr = cast<MCSymbolRefExpr>(SExpr->getSubExpr()); in getCallTargetOpValue() local
159 assert(SymExpr->getSymbol().getName() == "__tls_get_addr" && in getCallTargetOpValue()

123