source: src/SymTab/Validate.h@ cc7bbe6

ADT ast-experimental enum pthread-emulation qualifiedEnum
Last change on this file since cc7bbe6 was 9490621, checked in by Andrew Beach <ajbeach@…>, 4 years ago

My work in progress implementation of ForallPointerDecay for Fangren.

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[0dd3a2f]1//
2// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
7// Validate.h -- This class is intended to perform pre-processing of declarations, validating their correctness and
8// computing some auxilliary data that is necessary for the indexer.
9//
10// Author : Richard C. Bilson
11// Created On : Sun May 17 21:53:34 2015
12// Last Modified By : Peter A. Buhr
[6b0b624]13// Last Modified On : Sat Jul 22 09:46:07 2017
14// Update Count : 4
[0dd3a2f]15//
[51b73452]16
[6b0b624]17#pragma once
[51b73452]18
[30f9072]19#include <list> // for list
20
[7870799]21struct CodeLocation;
22class Declaration;
23class Type;
[51b73452]24
[c8e4d2f8]25namespace ast {
26 class Type;
27 class SymbolTable;
28}
29
[51b73452]30namespace SymTab {
[a08ba92]31 class Indexer;
[51b73452]32
[82dd287]33 /// Normalizes struct and function declarations
[a08ba92]34 void validate( std::list< Declaration * > &translationUnit, bool doDebug = false );
35 void validateType( Type *type, const Indexer *indexer );
[c8e4d2f8]36
[5dcb881]37 // Sub-passes of validate.
38 void validate_A( std::list< Declaration * > &translationUnit );
39 void validate_B( std::list< Declaration * > &translationUnit );
40 void validate_C( std::list< Declaration * > &translationUnit );
41 void validate_D( std::list< Declaration * > &translationUnit );
42 void validate_E( std::list< Declaration * > &translationUnit );
43 void validate_F( std::list< Declaration * > &translationUnit );
[a488783]44 void decayForallPointers( std::list< Declaration * > & translationUnit );
[9490621]45 void decayForallPointersA( std::list< Declaration * > & translationUnit );
46 void decayForallPointersB( std::list< Declaration * > & translationUnit );
47 void decayForallPointersC( std::list< Declaration * > & translationUnit );
48 void decayForallPointersD( std::list< Declaration * > & translationUnit );
[5dcb881]49
[7870799]50 const ast::Type * validateType(
[18e683b]51 const CodeLocation & loc, const ast::Type * type, const ast::SymbolTable & symtab );
[0dd3a2f]52} // namespace SymTab
[51b73452]53
[0dd3a2f]54// Local Variables: //
55// tab-width: 4 //
56// mode: c++ //
57// compile-command: "make install" //
58// End: //
Note: See TracBrowser for help on using the repository browser.