Intel® Implicit SPMD Program Compiler (Intel® ISPC)
1.13.0
|
Representation of a range of positions in a source file. More...
#include <ispc.h>
Public Member Functions | |
SourcePos (const char *n=NULL, int fl=0, int fc=0, int ll=0, int lc=0) | |
void | Print () const |
llvm::DIFile * | GetDIFile () const |
bool | operator== (const SourcePos &p2) const |
Public Attributes | |
const char * | name |
int | first_line |
int | first_column |
int | last_line |
int | last_column |
Representation of a range of positions in a source file.
This class represents a range of characters in a source file (e.g. those that span a token's definition), from starting line and column to ending line and column. (These values are tracked by the lexing code). Both lines and columns are counted starting from one.
SourcePos::SourcePos | ( | const char * | n = NULL , |
int | fl = 0 , |
||
int | fc = 0 , |
||
int | ll = 0 , |
||
int | lc = 0 |
||
) |
Definition at line 1491 of file ispc.cpp.
References Module::module.
llvm::DIFile * SourcePos::GetDIFile | ( | ) | const |
Returns a LLVM DIFile object that represents the SourcePos's file
Definition at line 1507 of file ispc.cpp.
References Globals::currentDirectory, Module::diBuilder, and GetDirectoryAndFileName().
Referenced by Module::AddGlobalVariable(), FunctionEmitContext::EmitFunctionParameterDebugInfo(), FunctionEmitContext::EmitVariableDebugInfo(), FunctionEmitContext::FunctionEmitContext(), EnumType::GetDIType(), StructType::GetDIType(), and UndefinedStructType::GetDIType().
bool SourcePos::operator== | ( | const SourcePos & | p2 | ) | const |
Definition at line 1518 of file ispc.cpp.
References first_column, first_line, last_column, last_line, and name.
void SourcePos::Print | ( | ) | const |
Prints the filename and line/column range to standard output.
Definition at line 1514 of file ispc.cpp.
Referenced by ExprStmt::Print(), DeclStmt::Print(), IfStmt::Print(), UnaryExpr::Print(), Declarator::Print(), DoStmt::Print(), BinaryExpr::Print(), ForStmt::Print(), AssignExpr::Print(), BreakStmt::Print(), ContinueStmt::Print(), SelectExpr::Print(), ForeachStmt::Print(), ExprList::Print(), ForeachActiveStmt::Print(), FunctionCallExpr::Print(), ForeachUniqueStmt::Print(), IndexExpr::Print(), UnmaskedStmt::Print(), ReturnStmt::Print(), MemberExpr::Print(), CaseStmt::Print(), DefaultStmt::Print(), SwitchStmt::Print(), ConstExpr::Print(), StmtList::Print(), TypeCastExpr::Print(), ReferenceExpr::Print(), PtrDerefExpr::Print(), RefDerefExpr::Print(), AddressOfExpr::Print(), SizeOfExpr::Print(), SymbolExpr::Print(), FunctionSymbolExpr::Print(), SyncExpr::Print(), and NullPointerExpr::Print().
int SourcePos::first_column |
Definition at line 128 of file ispc.h.
Referenced by FunctionEmitContext::AddDebugPos(), FunctionEmitContext::addGSMetadata(), AssertStmt::EmitCode(), FunctionEmitContext::EmitFunctionParameterDebugInfo(), FunctionEmitContext::EmitVariableDebugInfo(), lPrint(), lPrintFileLineContext(), operator==(), and Union().
int SourcePos::first_line |
Definition at line 127 of file ispc.h.
Referenced by FunctionEmitContext::AddDebugPos(), Module::AddFunctionDeclaration(), Module::AddGlobalVariable(), FunctionEmitContext::addGSMetadata(), DeclStmt::EmitCode(), AssertStmt::EmitCode(), FunctionEmitContext::EmitFunctionParameterDebugInfo(), FunctionEmitContext::EmitVariableDebugInfo(), EnumType::GetDIType(), StructType::GetDIType(), UndefinedStructType::GetDIType(), lCoalescePerfInfo(), lPrint(), lPrintFileLineContext(), operator==(), and Union().
int SourcePos::last_column |
Definition at line 130 of file ispc.h.
Referenced by FunctionEmitContext::addGSMetadata(), lPrintFileLineContext(), operator==(), and Union().
int SourcePos::last_line |
Definition at line 129 of file ispc.h.
Referenced by FunctionEmitContext::addGSMetadata(), lPrintFileLineContext(), operator==(), PerformanceWarning(), Union(), and Warning().
const char* SourcePos::name |
Definition at line 126 of file ispc.h.
Referenced by Module::AddFunctionDeclaration(), Module::AddGlobalVariable(), FunctionEmitContext::addGSMetadata(), AssertStmt::EmitCode(), lCreateISPCSymbol(), lCreateSymbol(), lPrint(), lPrintFileLineContext(), operator==(), PerformanceWarning(), Union(), and Warning().