|
Intel SPMD Program Compiler
1.3.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 637 of file ispc.cpp.
References first_column, first_line, last_column, last_line, Module::module, name, and NULL.
| llvm::DIFile SourcePos::GetDIFile | ( | ) | const |
Returns a LLVM DIFile object that represents the SourcePos's file
Definition at line 653 of file ispc.cpp.
References Assert, Globals::currentDirectory, Module::diBuilder, filename, GetDirectoryAndFileName(), and name.
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 670 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 663 of file ispc.cpp.
References first_column, first_line, last_column, last_line, and name.
Referenced by UnaryExpr::Print(), Declarator::Print(), BinaryExpr::Print(), AssignExpr::Print(), SelectExpr::Print(), ExprList::Print(), FunctionCallExpr::Print(), IndexExpr::Print(), MemberExpr::Print(), ConstExpr::Print(), TypeCastExpr::Print(), ReferenceExpr::Print(), PtrDerefExpr::Print(), RefDerefExpr::Print(), AddressOfExpr::Print(), SizeOfExpr::Print(), SymbolExpr::Print(), FunctionSymbolExpr::Print(), SyncExpr::Print(), and NullPointerExpr::Print().
Definition at line 125 of file ispc.h.
Referenced by FunctionEmitContext::AddDebugPos(), FunctionEmitContext::addGSMetadata(), lPrint(), lPrintFileLineContext(), operator==(), Print(), SourcePos(), FunctionEmitContext::StartScope(), and Union().
Definition at line 124 of file ispc.h.
Referenced by FunctionEmitContext::AddDebugPos(), Module::AddFunctionDeclaration(), Module::AddGlobalVariable(), FunctionEmitContext::addGSMetadata(), FunctionEmitContext::AddInstrumentationPoint(), DeclStmt::EmitCode(), FunctionEmitContext::EmitFunctionParameterDebugInfo(), FunctionEmitContext::EmitVariableDebugInfo(), FunctionEmitContext::FunctionEmitContext(), EnumType::GetDIType(), StructType::GetDIType(), UndefinedStructType::GetDIType(), lCoalescePerfInfo(), lPrint(), lPrintFileLineContext(), operator==(), Print(), SourcePos(), FunctionEmitContext::StartScope(), and Union().
Definition at line 127 of file ispc.h.
Referenced by FunctionEmitContext::addGSMetadata(), lPrintFileLineContext(), operator==(), Print(), SourcePos(), and Union().
Definition at line 126 of file ispc.h.
Referenced by FunctionEmitContext::addGSMetadata(), lPrintFileLineContext(), operator==(), Print(), SourcePos(), and Union().
| const char* SourcePos::name |
Definition at line 123 of file ispc.h.
Referenced by Module::AddFunctionDeclaration(), Module::AddGlobalVariable(), FunctionEmitContext::addGSMetadata(), FunctionEmitContext::AddInstrumentationPoint(), GetDIFile(), lCreateISPCSymbol(), lCreateSymbol(), lPrint(), lPrintFileLineContext(), operator==(), PerformanceWarning(), Print(), SourcePos(), and Union().
1.7.5.1