Changeset 2e9b59b for src/main.cc


Ignore:
Timestamp:
Apr 19, 2022, 3:00:04 PM (3 years ago)
Author:
m3zulfiq <m3zulfiq@…>
Branches:
ADT, ast-experimental, master, pthread-emulation, qualifiedEnum
Children:
5b84a321
Parents:
ba897d21 (diff), bb7c77d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

added benchmark and evaluations chapter to thesis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cc

    rba897d21 r2e9b59b  
    1010// Created On       : Fri May 15 23:12:02 2015
    1111// Last Modified By : Andrew Beach
    12 // Last Modified On : Wed Jan 26 14:09:00 2022
    13 // Update Count     : 670
     12// Last Modified On : Wed Apr 13 11:11:00 2022
     13// Update Count     : 672
    1414//
    1515
     
    3232
    3333#include "AST/Convert.hpp"
    34 #include "AST/Print.hpp"
    3534#include "CompilationState.h"
    3635#include "../config.h"                      // for CFA_LIBDIR
     
    7675#include "Tuples/Tuples.h"                  // for expandMemberTuples, expan...
    7776#include "Validate/Autogen.hpp"             // for autogenerateRoutines
     77#include "Validate/GenericParameter.hpp"    // for fillGenericParameters, tr...
    7878#include "Validate/FindSpecialDecls.h"      // for findGlobalDecls
    7979#include "Validate/ForallPointerDecay.hpp"  // for decayForallPointers
     
    8181#include "Validate/InitializerLength.hpp"   // for setLengthFromInitializer
    8282#include "Validate/LabelAddressFixer.hpp"   // for fixLabelAddresses
     83#include "Validate/ReturnCheck.hpp"         // for checkReturnStatements
    8384#include "Virtual/ExpandCasts.h"            // for expandCasts
    8485
     
    328329                PASS( "Validate-A", SymTab::validate_A( translationUnit ) );
    329330                PASS( "Validate-B", SymTab::validate_B( translationUnit ) );
    330                 PASS( "Validate-C", SymTab::validate_C( translationUnit ) );
    331331
    332332                CodeTools::fillLocations( translationUnit );
    333333
    334334                if( useNewAST ) {
    335                         PASS( "Implement Concurrent Keywords", Concurrency::applyKeywords( translationUnit ) );
    336                         //PASS( "Forall Pointer Decay - A", SymTab::decayForallPointersA( translationUnit ) );
    337                         //PASS( "Forall Pointer Decay - B", SymTab::decayForallPointersB( translationUnit ) );
    338                         //PASS( "Forall Pointer Decay - C", SymTab::decayForallPointersC( translationUnit ) );
    339                         //PASS( "Forall Pointer Decay - D", SymTab::decayForallPointersD( translationUnit ) );
    340335                        CodeTools::fillLocations( translationUnit );
    341336
     
    347342
    348343                        forceFillCodeLocations( transUnit );
     344
     345                        // Check as early as possible. Can't happen before
     346                        // LinkReferenceToType, observed failing when attempted
     347                        // before eliminateTypedef
     348                        PASS( "Validate Generic Parameters", Validate::fillGenericParameters( transUnit ) );
     349
     350                        PASS( "Translate Dimensions", Validate::translateDimensionParameters( transUnit ) );
     351                        PASS( "Check Function Returns", Validate::checkReturnStatements( transUnit ) );
     352
     353                        // Must happen before Autogen.
     354                        PASS( "Fix Return Statements", InitTweak::fixReturnStatements( transUnit ) );
     355
     356                        PASS( "Implement Concurrent Keywords", Concurrency::implementKeywords( transUnit ) );
    349357
    350358                        // Must be after implement concurrent keywords; because uniqueIds
     
    430438                        translationUnit = convert( move( transUnit ) );
    431439                } else {
     440                        PASS( "Validate-C", SymTab::validate_C( translationUnit ) );
    432441                        PASS( "Validate-D", SymTab::validate_D( translationUnit ) );
    433442                        PASS( "Validate-E", SymTab::validate_E( translationUnit ) );
     
    497506                        PASS( "Translate Tries" , ControlStruct::translateTries( translationUnit ) );
    498507                }
    499 
    500                
    501508
    502509                PASS( "Gen Waitfor" , Concurrency::generateWaitFor( translationUnit ) );
Note: See TracChangeset for help on using the changeset viewer.