clang  6.0.0svn
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
clang::threadSafety::til::SExpr Class Reference

Base class for AST nodes in the typed intermediate language. More...

#include "clang/Analysis/Analyses/ThreadSafetyTIL.h"

Inheritance diagram for clang::threadSafety::til::SExpr:
Inheritance graph
[legend]
Collaboration diagram for clang::threadSafety::til::SExpr:
Collaboration graph
[legend]

Public Member Functions

TIL_Opcode opcode () const
 
void * operator new (size_t S, MemRegionRef &R)
 
void operator delete (void *)=delete
 SExpr objects cannot be deleted. More...
 
unsigned id () const
 Returns the instruction ID for this expression. More...
 
BasicBlockblock () const
 Returns the block, if this is an instruction in a basic block, otherwise returns null. More...
 
void setID (BasicBlock *B, unsigned id)
 Set the basic block and instruction ID for this expression. More...
 

Protected Member Functions

 SExpr (TIL_Opcode Op)
 
 SExpr (const SExpr &E)
 

Protected Attributes

const unsigned char Opcode
 
unsigned char Reserved
 
unsigned short Flags
 
unsigned SExprID
 
BasicBlockBlock
 

Detailed Description

Base class for AST nodes in the typed intermediate language.

Definition at line 261 of file ThreadSafetyTIL.h.

Constructor & Destructor Documentation

◆ SExpr() [1/2]

clang::threadSafety::til::SExpr::SExpr ( TIL_Opcode  Op)
inlineprotected

Definition at line 300 of file ThreadSafetyTIL.h.

◆ SExpr() [2/2]

clang::threadSafety::til::SExpr::SExpr ( const SExpr E)
inlineprotected

Definition at line 302 of file ThreadSafetyTIL.h.

Member Function Documentation

◆ block()

BasicBlock* clang::threadSafety::til::SExpr::block ( ) const
inline

Returns the block, if this is an instruction in a basic block, otherwise returns null.

Definition at line 294 of file ThreadSafetyTIL.h.

◆ id()

unsigned clang::threadSafety::til::SExpr::id ( ) const
inline

Returns the instruction ID for this expression.

All basic block instructions have a unique ID (i.e. virtual register).

Definition at line 290 of file ThreadSafetyTIL.h.

Referenced by clang::threadSafety::til::PrettyPrinter< StdPrinter, std::ostream >::printVariable().

◆ opcode()

TIL_Opcode clang::threadSafety::til::SExpr::opcode ( ) const
inline

◆ operator delete()

void clang::threadSafety::til::SExpr::operator delete ( void *  )
delete

SExpr objects cannot be deleted.

◆ operator new()

void* clang::threadSafety::til::SExpr::operator new ( size_t  S,
MemRegionRef R 
)
inline

Definition at line 279 of file ThreadSafetyTIL.h.

◆ setID()

void clang::threadSafety::til::SExpr::setID ( BasicBlock B,
unsigned  id 
)
inline

Set the basic block and instruction ID for this expression.

Definition at line 297 of file ThreadSafetyTIL.h.

References clang::ast_matchers::id().

Member Data Documentation

◆ Block

BasicBlock* clang::threadSafety::til::SExpr::Block
protected

Definition at line 310 of file ThreadSafetyTIL.h.

Referenced by clang::threadSafety::til::simplifyIncompleteArg().

◆ Flags

unsigned short clang::threadSafety::til::SExpr::Flags
protected

Definition at line 308 of file ThreadSafetyTIL.h.

Referenced by clang::threadSafety::til::BinaryOp::BinaryOp().

◆ Opcode

const unsigned char clang::threadSafety::til::SExpr::Opcode
protected

Definition at line 306 of file ThreadSafetyTIL.h.

◆ Reserved

unsigned char clang::threadSafety::til::SExpr::Reserved
protected

Definition at line 307 of file ThreadSafetyTIL.h.

◆ SExprID

unsigned clang::threadSafety::til::SExpr::SExprID
protected

Definition at line 309 of file ThreadSafetyTIL.h.


The documentation for this class was generated from the following file: