- Timestamp:
- May 13, 2024, 10:26:59 AM (16 months ago)
- Branches:
- master
- Children:
- e6f1a4b
- Parents:
- acb33f15 (diff), ca4f2b2 (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. - Location:
- src
- Files:
-
- 1 deleted
- 83 edited
- 123 moved
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Decl.cpp
racb33f15 r31f4837 20 20 #include <unordered_map> 21 21 22 #include "Common/Eval.h "// for eval23 #include "Common/SemanticError.h "22 #include "Common/Eval.hpp" // for eval 23 #include "Common/SemanticError.hpp" 24 24 25 25 #include "Fwd.hpp" // for UniqueId -
src/AST/Expr.cpp
racb33f15 r31f4837 27 27 #include "Type.hpp" 28 28 #include "TypeSubstitution.hpp" 29 #include "Common/ utility.h"30 #include "Common/SemanticError.h "31 #include "GenPoly/Lvalue.h "// for referencesPermissable32 #include "ResolvExpr/Unify.h "// for extractResultType33 #include "Tuples/Tuples.h "// for makeTupleType29 #include "Common/Utility.hpp" 30 #include "Common/SemanticError.hpp" 31 #include "GenPoly/Lvalue.hpp" // for referencesPermissable 32 #include "ResolvExpr/Unify.hpp" // for extractResultType 33 #include "Tuples/Tuples.hpp" // for makeTupleType 34 34 35 35 namespace ast { -
src/AST/Inspect.cpp
racb33f15 r31f4837 24 24 #include "AST/Stmt.hpp" 25 25 #include "AST/Type.hpp" 26 #include "CodeGen/OperatorTable.h "26 #include "CodeGen/OperatorTable.hpp" 27 27 28 28 namespace ast { -
src/AST/Label.hpp
racb33f15 r31f4837 21 21 22 22 #include "Node.hpp" 23 #include "Common/CodeLocation.h "23 #include "Common/CodeLocation.hpp" 24 24 25 25 namespace ast { -
src/AST/LinkageSpec.cpp
racb33f15 r31f4837 20 20 #include <string> 21 21 22 #include "Common/CodeLocation.h "23 #include "Common/SemanticError.h "22 #include "Common/CodeLocation.hpp" 23 #include "Common/SemanticError.hpp" 24 24 25 25 namespace ast { -
src/AST/LinkageSpec.hpp
racb33f15 r31f4837 19 19 20 20 #include "Bitfield.hpp" 21 #include "Common/CodeLocation.h "21 #include "Common/CodeLocation.hpp" 22 22 23 23 namespace ast { -
src/AST/Node.hpp
racb33f15 r31f4837 20 20 #include <iosfwd> 21 21 22 #include "Common/ErrorObjects.h " // for SemanticErrorException22 #include "Common/ErrorObjects.hpp" // for SemanticErrorException 23 23 24 24 namespace ast { -
src/AST/ParseNode.hpp
racb33f15 r31f4837 18 18 #include "Node.hpp" 19 19 20 #include "Common/CodeLocation.h "20 #include "Common/CodeLocation.hpp" 21 21 22 22 namespace ast { -
src/AST/Pass.hpp
racb33f15 r31f4837 423 423 } 424 424 425 #include "Common/Stats.h "425 #include "Common/Stats.hpp" 426 426 427 427 namespace ast { -
src/AST/Pass.proto.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Pass. impl.hpp --7 // Pass.proto.hpp -- 8 8 // 9 9 // Author : Thierry Delisle … … 18 18 19 19 #include "Common/Iterate.hpp" 20 #include "Common/Stats/Heap.h "21 #include "Common/ utility.h"20 #include "Common/Stats/Heap.hpp" 21 #include "Common/Utility.hpp" 22 22 namespace ast { 23 23 template<typename core_t> class Pass; -
src/AST/Print.hpp
racb33f15 r31f4837 19 19 20 20 #include "AST/Fwd.hpp" 21 #include "Common/Indenter.h "21 #include "Common/Indenter.hpp" 22 22 23 23 namespace ast { -
src/AST/Stmt.hpp
racb33f15 r31f4837 24 24 #include "ParseNode.hpp" 25 25 #include "Visitor.hpp" 26 #include "Common/CodeLocation.h "26 #include "Common/CodeLocation.hpp" 27 27 28 28 // Must be included in *all* AST classes; should be #undef'd at the end of the file -
src/AST/SymbolTable.cpp
racb33f15 r31f4837 23 23 #include "Inspect.hpp" 24 24 #include "Type.hpp" 25 #include "CodeGen/OperatorTable.h "// for isCtorDtorAssign26 #include "Common/SemanticError.h "27 #include "Common/Stats/Counter.h "28 #include "GenPoly/GenPoly.h "29 #include "InitTweak/InitTweak.h "30 #include "ResolvExpr/Cost.h "25 #include "CodeGen/OperatorTable.hpp" // for isCtorDtorAssign 26 #include "Common/SemanticError.hpp" 27 #include "Common/Stats/Counter.hpp" 28 #include "GenPoly/GenPoly.hpp" 29 #include "InitTweak/InitTweak.hpp" 30 #include "ResolvExpr/Cost.hpp" 31 31 #include "ResolvExpr/CandidateFinder.hpp" // for referenceToRvalueConversion 32 #include "ResolvExpr/Unify.h "33 #include "SymTab/Mangler.h "32 #include "ResolvExpr/Unify.hpp" 33 #include "SymTab/Mangler.hpp" 34 34 35 35 namespace ast { -
src/AST/SymbolTable.hpp
racb33f15 r31f4837 21 21 #include "Fwd.hpp" 22 22 #include "Node.hpp" // for ptr, readonly 23 #include "Common/CodeLocation.h "24 #include "Common/PersistentMap.h "23 #include "Common/CodeLocation.hpp" 24 #include "Common/PersistentMap.hpp" 25 25 26 26 namespace ResolvExpr { -
src/AST/Type.cpp
racb33f15 r31f4837 23 23 #include "Init.hpp" 24 24 #include "Inspect.hpp" 25 #include "Common/ utility.h"// for copy, move26 #include "Tuples/Tuples.h "// for isTtype25 #include "Common/Utility.hpp" // for copy, move 26 #include "Tuples/Tuples.hpp" // for isTtype 27 27 28 28 namespace ast { -
src/AST/TypeEnvironment.cpp
racb33f15 r31f4837 29 29 #include "Print.hpp" 30 30 #include "Type.hpp" 31 #include "Common/Indenter.h "32 #include "ResolvExpr/ typeops.h" // for occurs33 #include "ResolvExpr/WidenMode.h "34 #include "ResolvExpr/Unify.h " // for unifyInexact35 #include "Tuples/Tuples.h " // for isTtype31 #include "Common/Indenter.hpp" 32 #include "ResolvExpr/Typeops.hpp" // for occurs 33 #include "ResolvExpr/WidenMode.hpp" 34 #include "ResolvExpr/Unify.hpp" // for unifyInexact 35 #include "Tuples/Tuples.hpp" // for isTtype 36 36 #include "CompilationState.hpp" 37 37 -
src/AST/TypeEnvironment.hpp
racb33f15 r31f4837 28 28 #include "Type.hpp" 29 29 #include "TypeSubstitution.hpp" 30 #include "Common/Indenter.h "31 #include "ResolvExpr/WidenMode.h "30 #include "Common/Indenter.hpp" 31 #include "ResolvExpr/WidenMode.hpp" 32 32 33 33 namespace ast { -
src/AST/TypeSubstitution.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // TypeSubstitution.c c--7 // TypeSubstitution.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson -
src/AST/TypeSubstitution.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // TypeSubstitution.h --7 // TypeSubstitution.hpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 16 16 #pragma once 17 17 18 #include <cassert> // for assert19 #include <list> // for list<>::iterator, _List_iterator18 #include <cassert> // for assert 19 #include <list> // for list<>::iterator, _List_iterator 20 20 #include <unordered_map> 21 21 #include <unordered_set> 22 #include <string> // for string, operator!=23 #include <utility> // for pair22 #include <string> // for string, operator!= 23 #include <utility> // for pair 24 24 25 #include "Fwd.hpp" // for UniqueId25 #include "Fwd.hpp" // for UniqueId 26 26 #include "ParseNode.hpp" 27 27 #include "Type.hpp" 28 #include "Common/SemanticError.h " // for SemanticError28 #include "Common/SemanticError.hpp" // for SemanticError 29 29 #include "Visitor.hpp" 30 30 #include "Decl.hpp" -
src/AST/Util.cpp
racb33f15 r31f4837 20 20 #include "Pass.hpp" 21 21 #include "TranslationUnit.hpp" 22 #include "Common/ utility.h"23 #include "GenPoly/ScopedSet.h "22 #include "Common/Utility.hpp" 23 #include "GenPoly/ScopedSet.hpp" 24 24 25 25 #include <vector> -
src/BasicTypes-gen.cpp
racb33f15 r31f4837 326 326 327 327 328 #define ConversionCost TOP_SRCDIR "src/ResolvExpr/ConversionCost.c c"328 #define ConversionCost TOP_SRCDIR "src/ResolvExpr/ConversionCost.cpp" 329 329 resetInput( file, ConversionCost, buffer, code, str ); 330 330 … … 405 405 406 406 407 #define CommonType TOP_SRCDIR "src/ResolvExpr/CommonType.c c"407 #define CommonType TOP_SRCDIR "src/ResolvExpr/CommonType.cpp" 408 408 resetInput( file, CommonType, buffer, code, str ); 409 409 … … 446 446 447 447 448 #define ManglerCommon TOP_SRCDIR "src/SymTab/ManglerCommon.c c"448 #define ManglerCommon TOP_SRCDIR "src/SymTab/ManglerCommon.cpp" 449 449 resetInput( file, ManglerCommon, buffer, code, str ); 450 450 -
src/CodeGen/CodeGenerator.cpp
racb33f15 r31f4837 17 17 18 18 #include "AST/Print.hpp" 19 #include "OperatorTable.h "// for OperatorInfo, operatorLookup20 #include "CodeGen/GenType.h "// for genType19 #include "OperatorTable.hpp" // for OperatorInfo, operatorLookup 20 #include "CodeGen/GenType.hpp" // for genType 21 21 #include "Common/ToString.hpp" // for toString 22 #include "Common/UniqueName.h "// for UniqueName22 #include "Common/UniqueName.hpp" // for UniqueName 23 23 24 24 namespace CodeGen { -
src/CodeGen/CodeGenerator.hpp
racb33f15 r31f4837 20 20 #include "AST/Fwd.hpp" 21 21 #include "AST/Pass.hpp" // for WithGuards, WithShortCircuiting, ... 22 #include "CodeGen/Options.h "// for Options23 #include "Common/Indenter.h "// for Indenter22 #include "CodeGen/Options.hpp" // for Options 23 #include "Common/Indenter.hpp" // for Indenter 24 24 25 25 -
src/CodeGen/FixMain.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // FixMain.c c-- Tools to change a Cforall main into a C main.7 // FixMain.cpp -- Tools to change a Cforall main into a C main. 8 8 // 9 9 // Author : Thierry Delisle … … 14 14 // 15 15 16 #include "FixMain.h "16 #include "FixMain.hpp" 17 17 18 #include <cassert> // for assert, assertf19 #include <fstream> // for operator<<, basic_ostream::operator<<20 #include <list> // for list21 #include <string> // for operator<<18 #include <cassert> // for assert, assertf 19 #include <fstream> // for operator<<, basic_ostream::oper... 20 #include <list> // for list 21 #include <string> // for operator<< 22 22 23 23 #include "AST/Decl.hpp" … … 25 25 #include "AST/Type.hpp" 26 26 #include "AST/Vector.hpp" 27 #include "Common/SemanticError.h " // for SemanticError28 #include "CodeGen/GenType.h " // for GenType29 #include "SymTab/Mangler.h "27 #include "Common/SemanticError.hpp" // for SemanticError 28 #include "CodeGen/GenType.hpp" // for GenType 29 #include "SymTab/Mangler.hpp" 30 30 31 31 namespace CodeGen { -
src/CodeGen/FixMain.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // FixMain.h -- Tools to change a Cforall main into a C main.7 // FixMain.hpp -- Tools to change a Cforall main into a C main. 8 8 // 9 9 // Author : Thierry Delisle -
src/CodeGen/FixNames.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // FixNames.c c-- Adjustments to typed declarations.7 // FixNames.cpp -- Adjustments to typed declarations. 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "FixNames.h "16 #include "FixNames.hpp" 17 17 18 #include <memory> // for unique_ptr19 #include <string> // for string, operator!=, operator==18 #include <memory> // for unique_ptr 19 #include <string> // for string, operator!=, operator== 20 20 21 21 #include "AST/Chain.hpp" 22 22 #include "AST/Expr.hpp" 23 23 #include "AST/Pass.hpp" 24 #include "Common/SemanticError.h " // for SemanticError25 #include "FixMain.h " // for FixMain26 #include "SymTab/Mangler.h " // for Mangler24 #include "Common/SemanticError.hpp" // for SemanticError 25 #include "FixMain.hpp" // for FixMain 26 #include "SymTab/Mangler.hpp" // for Mangler 27 27 #include "CompilationState.hpp" 28 28 -
src/CodeGen/FixNames.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // FixNames.h -- Adjustments to typed declarations.7 // FixNames.hpp -- Adjustments to typed declarations. 8 8 // 9 9 // Author : Richard C. Bilson -
src/CodeGen/GenType.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // GenType.c c--7 // GenType.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 13 13 // Update Count : 24 14 14 // 15 #include "GenType.h" 15 16 #include "GenType.hpp" 16 17 17 18 #include <cassert> // for assert, assertf … … 22 23 #include "AST/Vector.hpp" // for vector 23 24 #include "CodeGenerator.hpp" // for CodeGenerator 24 #include "Common/UniqueName.h "// for UniqueName25 #include "Common/UniqueName.hpp" // for UniqueName 25 26 26 27 namespace CodeGen { -
src/CodeGen/GenType.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // GenType.h --7 // GenType.hpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 18 18 #include <string> // for string 19 19 20 #include "CodeGen/Options.h " // for Options20 #include "CodeGen/Options.hpp" // for Options 21 21 22 22 namespace ast { -
src/CodeGen/Generate.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Generate.c c--7 // Generate.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 13 13 // Update Count : 9 14 14 // 15 #include "Generate.h "15 #include "Generate.hpp" 16 16 17 17 #include <iostream> // for ostream, endl, operator<< … … 20 20 21 21 #include "CodeGenerator.hpp" // for CodeGenerator, doSemicolon, ... 22 #include "GenType.h "// for genPrettyType22 #include "GenType.hpp" // for genPrettyType 23 23 24 24 using namespace std; -
src/CodeGen/Generate.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Generate.h --7 // Generate.hpp -- 8 8 // 9 9 // Author : Richard C. Bilson -
src/CodeGen/LinkOnce.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // LinkOnce.c c-- Translate the cfa_linkonce attribute.7 // LinkOnce.cpp -- Translate the cfa_linkonce attribute. 8 8 // 9 9 // Author : Andrew Beach … … 14 14 // 15 15 16 #include "LinkOnce.h "16 #include "LinkOnce.hpp" 17 17 18 18 #include <algorithm> -
src/CodeGen/LinkOnce.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // LinkOnce.h -- Translate the cfa_linkonce attribute.7 // LinkOnce.hpp -- Translate the cfa_linkonce attribute. 8 8 // 9 9 // Author : Andrew Beach -
src/CodeGen/OperatorTable.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // OperatorTable.c c--7 // OperatorTable.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "OperatorTable.h "16 #include "OperatorTable.hpp" 17 17 18 18 #include <cassert> // for assert -
src/CodeGen/OperatorTable.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // OperatorTable.h --7 // OperatorTable.hpp -- 8 8 // 9 9 // Author : Richard C. Bilson -
src/CodeGen/module.mk
racb33f15 r31f4837 18 18 CodeGen/CodeGenerator.cpp \ 19 19 CodeGen/CodeGenerator.hpp \ 20 CodeGen/GenType.c c\21 CodeGen/GenType.h \22 CodeGen/OperatorTable.c c\23 CodeGen/OperatorTable.h 20 CodeGen/GenType.cpp \ 21 CodeGen/GenType.hpp \ 22 CodeGen/OperatorTable.cpp \ 23 CodeGen/OperatorTable.hpp 24 24 25 25 SRC += $(SRC_CODEGEN) \ 26 CodeGen/ Generate.cc\27 CodeGen/ Generate.h\28 CodeGen/Fix Main.cc\29 CodeGen/Fix Main.h\30 CodeGen/ FixNames.cc\31 CodeGen/ FixNames.h\32 CodeGen/LinkOnce.c c\33 CodeGen/LinkOnce.h \34 CodeGen/Options.h 26 CodeGen/FixMain.cpp \ 27 CodeGen/FixMain.hpp \ 28 CodeGen/FixNames.cpp \ 29 CodeGen/FixNames.hpp \ 30 CodeGen/Generate.cpp \ 31 CodeGen/Generate.hpp \ 32 CodeGen/LinkOnce.cpp \ 33 CodeGen/LinkOnce.hpp \ 34 CodeGen/Options.hpp 35 35 36 36 SRCDEMANGLE += $(SRC_CODEGEN) -
src/Common/Assert.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Assert.c c--7 // Assert.cpp -- 8 8 // 9 9 // Author : Peter A. Buhr … … 22 22 #define CFA_ASSERT_FMT "*CFA assertion error* \"%s\" from program \"%s\" in \"%s\" at line %d in file \"%s\"" 23 23 24 // called by macro assert in assert.h24 // called by macro assert in cassert 25 25 void __assert_fail( const char *assertion, const char *file, unsigned int line, const char *function ) { 26 26 fprintf( stderr, CFA_ASSERT_FMT ".\n", assertion, __progname, function, line, file ); -
src/Common/CodeLocation.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // CodeLocation.h --7 // CodeLocation.hpp -- 8 8 // 9 9 // Author : Andrew Beach -
src/Common/CodeLocationTools.cpp
racb33f15 r31f4837 20 20 #include "AST/Pass.hpp" 21 21 #include "AST/TranslationUnit.hpp" 22 #include "Common/CodeLocation.h "22 #include "Common/CodeLocation.hpp" 23 23 24 24 namespace { -
src/Common/DeclStats.cpp
racb33f15 r31f4837 19 19 #include "AST/Pass.hpp" 20 20 #include "AST/Print.hpp" 21 #include "Common/VectorMap.h "21 #include "Common/VectorMap.hpp" 22 22 23 23 #include <iostream> -
src/Common/ErrorObjects.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ErrorObjects.h --7 // ErrorObjects.hpp -- 8 8 // 9 9 // Author : Thierry Delisle … … 23 23 #include <unistd.h> // for isatty 24 24 25 #include "CodeLocation.h " // for CodeLocation, toString25 #include "CodeLocation.hpp" // for CodeLocation, toString 26 26 27 27 struct error { -
src/Common/Eval.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Eval.c c-- Evaluate parts of the ast at compile time.7 // Eval.cpp -- Evaluate parts of the ast at compile time. 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "Eval.h "16 #include "Eval.hpp" 17 17 18 18 #include <utility> // for pair 19 19 20 20 #include "AST/Inspect.hpp" 21 #include "CodeGen/OperatorTable.h " // access: OperatorInfo21 #include "CodeGen/OperatorTable.hpp" // access: OperatorInfo 22 22 #include "AST/Pass.hpp" 23 #include "InitTweak/InitTweak.h "23 #include "InitTweak/InitTweak.hpp" 24 24 25 25 struct EvalNew : public ast::WithShortCircuiting { -
src/Common/Eval.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Eval.h -- Evaluate parts of the ast at compile time.7 // Eval.hpp -- Evaluate parts of the ast at compile time. 8 8 // 9 9 // Author : Andrew Beach -
src/Common/Examine.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Examine.c c-- Helpers for examining AST code.7 // Examine.cpp -- Helpers for examining AST code. 8 8 // 9 9 // Author : Andrew Beach … … 14 14 // 15 15 16 #include "Common/Examine.h "16 #include "Common/Examine.hpp" 17 17 18 18 #include "AST/Type.hpp" 19 #include "CodeGen/OperatorTable.h "20 #include "InitTweak/InitTweak.h "19 #include "CodeGen/OperatorTable.hpp" 20 #include "InitTweak/InitTweak.hpp" 21 21 22 22 namespace { … … 55 55 const ast::Type * getDestructorParam( const ast::FunctionDecl * func ) { 56 56 if ( !CodeGen::isDestructor( func->name ) ) return nullptr; 57 //return InitTweak::getParamThis( func )->type;58 57 return getTypeofThisSolo( func ); 59 58 } -
src/Common/Examine.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Examine.h -- Helpers for examining AST code.7 // Examine.hpp -- Helpers for examining AST code. 8 8 // 9 9 // Author : Andrew Beach -
src/Common/FilterCombos.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // FilterCombos.h --7 // FilterCombos.hpp -- 8 8 // 9 9 // Author : Aaron B. Moss … … 22 22 23 23 /// Combo iterator that simply collects values into a vector, marking all values as valid. 24 /// Prefer combos in typeops.hto use of IntoVectorComboIter with filterCombos24 /// Prefer combos in Typeops.hpp to use of IntoVectorComboIter with filterCombos 25 25 /// @param T The element type of the vector. 26 26 template<typename T> -
src/Common/Indenter.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Indenter.c c--7 // Indenter.cpp -- 8 8 // 9 9 // Author : Andrew Beach … … 14 14 // 15 15 16 #include "Indenter.h "16 #include "Indenter.hpp" 17 17 18 18 unsigned Indenter::tabsize = 2; -
src/Common/Indenter.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Indenter.h --7 // Indenter.hpp -- 8 8 // 9 9 // Author : Rob Schluntz -
src/Common/PersistentMap.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // PersistentMap.h --7 // PersistentMap.hpp -- 8 8 // 9 9 // Author : Aaron B. Moss -
src/Common/ResolvProtoDump.cpp
racb33f15 r31f4837 26 26 #include "AST/TranslationUnit.hpp" 27 27 #include "AST/Type.hpp" 28 #include "CodeGen/OperatorTable.h "28 #include "CodeGen/OperatorTable.hpp" 29 29 30 30 namespace { -
src/Common/ScopedMap.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ScopedMap.h --7 // ScopedMap.hpp -- 8 8 // 9 9 // Author : Aaron B. Moss -
src/Common/SemanticError.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // SemanticError.c c--7 // SemanticError.cpp -- 8 8 // 9 9 // Author : Thierry Delisle … … 13 13 // Update Count : 34 14 14 // 15 16 #include "SemanticError.hpp" 15 17 16 18 #include <cstdarg> … … 23 25 #include <vector> 24 26 27 #include "Common/Utility.hpp" // for to_string, CodeLocation (ptr only) 28 25 29 using namespace std; 26 27 #include "Common/utility.h" // for to_string, CodeLocation (ptr only)28 #include "SemanticError.h"29 30 30 31 //----------------------------------------------------------------------------- -
src/Common/SemanticError.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // SemanticError.h --7 // SemanticError.hpp -- 8 8 // 9 9 // Author : Thierry Delisle … … 16 16 #pragma once 17 17 18 #include "ErrorObjects.h "18 #include "ErrorObjects.hpp" 19 19 #include "AST/Node.hpp" 20 20 #include "AST/ParseNode.hpp" -
src/Common/Stats.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Stats.h --7 // Stats.hpp -- 8 8 // 9 9 // Author : Thierry Delisle … … 24 24 25 25 These can be enabled using the --stats option, to which a comma seperated list of options can be passed. 26 For more details see Stats.cc26 For more information, see Stats/Stats.cpp 27 27 28 28 Counters: … … 40 40 41 41 42 #include "Common/Stats/Counter.h "43 #include "Common/Stats/Heap.h "44 #include "Common/Stats/Time.h "42 #include "Common/Stats/Counter.hpp" 43 #include "Common/Stats/Heap.hpp" 44 #include "Common/Stats/Time.hpp" 45 45 46 46 namespace Stats { -
src/Common/Stats/Base.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Heap.h --7 // Heap.hpp -- 8 8 // 9 9 // Author : Thierry Delisle -
src/Common/Stats/Counter.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Counter.c c--7 // Counter.cpp -- 8 8 // 9 9 // Author : Thierry Delisle … … 14 14 // 15 15 16 #include "Counter.h "16 #include "Counter.hpp" 17 17 18 18 #include <algorithm> -
src/Common/Stats/Counter.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Counter.h --7 // Counter.hpp -- 8 8 // 9 9 // Author : Thierry Delisle … … 19 19 #include <iostream> 20 20 21 #include "Common/Stats/Base.h "21 #include "Common/Stats/Base.hpp" 22 22 23 23 #if defined( NO_STATISTICS ) -
src/Common/Stats/Heap.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Heap.c c--7 // Heap.cpp -- 8 8 // 9 9 // Author : Thierry Delisle … … 69 69 void stacktrace_push(size_t id) { 70 70 ++stacktrace_depth; 71 assertf(stacktrace_depth < stacktrace_max_depth, "Stack trace too deep: increase size of array in Heap.c c");71 assertf(stacktrace_depth < stacktrace_max_depth, "Stack trace too deep: increase size of array in Heap.cpp"); 72 72 trace[stacktrace_depth] = id; 73 73 } … … 87 87 passes_cnt++; 88 88 89 assertf(passes_cnt < passes_size, "Too many passes for Stats::Heap, increase the size of the array in Heap.c c");89 assertf(passes_cnt < passes_size, "Too many passes for Stats::Heap, increase the size of the array in Heap.cpp"); 90 90 } 91 91 -
src/Common/Stats/Heap.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Heap.h --7 // Heap.hpp -- 8 8 // 9 9 // Author : Thierry Delisle -
src/Common/Stats/ResolveTime.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ResolveTime.c c--7 // ResolveTime.cpp -- 8 8 // 9 9 // Author : Thierry Delisle … … 14 14 // 15 15 16 #include "ResolveTime.h "16 #include "ResolveTime.hpp" 17 17 18 18 #include <fstream> -
src/Common/Stats/ResolveTime.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ResolveTime.h --7 // ResolveTime.hpp -- 8 8 // 9 9 // Author : Thierry Delisle … … 16 16 #pragma once 17 17 18 #include "Common/Stats/Base.h "18 #include "Common/Stats/Base.hpp" 19 19 20 20 #if defined( NO_STATISTICS ) -
src/Common/Stats/Stats.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Stats.c c--7 // Stats.cpp -- 8 8 // 9 9 // Author : Thierry Delisle -
src/Common/Stats/Time.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Time.c c--7 // Time.cpp -- 8 8 // 9 9 // Author : Thierry Delisle … … 14 14 // 15 15 16 #include "Time.h "16 #include "Time.hpp" 17 17 18 18 #include <cassert> -
src/Common/Stats/Time.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Time.h --7 // Time.hpp -- 8 8 // 9 9 // Author : Thierry Delisle … … 16 16 #pragma once 17 17 18 #include "Common/Stats/Base.h "18 #include "Common/Stats/Base.hpp" 19 19 20 20 #if defined( NO_STATISTICS ) -
src/Common/UniqueName.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // UniqueName.c c-- Create a unique variants of a base name with a counter.7 // UniqueName.cpp -- Create a unique variants of a base name with a counter. 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "UniqueName.h "16 #include "UniqueName.hpp" 17 17 18 18 #include "Common/ToString.hpp" -
src/Common/UniqueName.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // UniqueName.h -- Create a unique variants of a base name with a counter.7 // UniqueName.hpp -- Create a unique variants of a base name with a counter. 8 8 // 9 9 // Author : Richard C. Bilson -
src/Common/Utility.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // utility.h-- General utilities used across the compiler.7 // Utility.hpp -- General utilities used across the compiler. 8 8 // 9 9 // Author : Richard C. Bilson -
src/Common/VectorMap.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // VectorMap.h --7 // VectorMap.hpp -- 8 8 // 9 9 // Author : Aaron B. Moss -
src/Common/module.mk
racb33f15 r31f4837 16 16 17 17 SRC_COMMON = \ 18 Common/Assert.c c\19 Common/CodeLocation.h \18 Common/Assert.cpp \ 19 Common/CodeLocation.hpp \ 20 20 Common/CodeLocationTools.hpp \ 21 21 Common/CodeLocationTools.cpp \ 22 22 Common/DeclStats.hpp \ 23 23 Common/DeclStats.cpp \ 24 Common/ErrorObjects.h \25 Common/Eval.c c\26 Common/Eval.h \27 Common/Examine.c c\28 Common/Examine.h \29 Common/FilterCombos.h \30 Common/Indenter.h \31 Common/Indenter.c c\24 Common/ErrorObjects.hpp \ 25 Common/Eval.cpp \ 26 Common/Eval.hpp \ 27 Common/Examine.cpp \ 28 Common/Examine.hpp \ 29 Common/FilterCombos.hpp \ 30 Common/Indenter.hpp \ 31 Common/Indenter.cpp \ 32 32 Common/Iterate.hpp \ 33 Common/PersistentMap.h \33 Common/PersistentMap.hpp \ 34 34 Common/ResolvProtoDump.hpp \ 35 35 Common/ResolvProtoDump.cpp \ 36 Common/ScopedMap.h \37 Common/SemanticError.c c\38 Common/SemanticError.h \39 Common/Stats.h \40 Common/Stats/Base.h \41 Common/Stats/Counter.c c\42 Common/Stats/Counter.h \43 Common/Stats/Heap.c c\44 Common/Stats/Heap.h \45 Common/Stats/ResolveTime.c c\46 Common/Stats/ResolveTime.h \47 Common/Stats/Stats.c c\48 Common/Stats/Time.c c\49 Common/Stats/Time.h \36 Common/ScopedMap.hpp \ 37 Common/SemanticError.cpp \ 38 Common/SemanticError.hpp \ 39 Common/Stats.hpp \ 40 Common/Stats/Base.hpp \ 41 Common/Stats/Counter.cpp \ 42 Common/Stats/Counter.hpp \ 43 Common/Stats/Heap.cpp \ 44 Common/Stats/Heap.hpp \ 45 Common/Stats/ResolveTime.cpp \ 46 Common/Stats/ResolveTime.hpp \ 47 Common/Stats/Stats.cpp \ 48 Common/Stats/Time.cpp \ 49 Common/Stats/Time.hpp \ 50 50 Common/ToString.hpp \ 51 Common/UniqueName.c c\52 Common/UniqueName.h \53 Common/ utility.h\54 Common/VectorMap.h 51 Common/UniqueName.cpp \ 52 Common/UniqueName.hpp \ 53 Common/Utility.hpp \ 54 Common/VectorMap.hpp 55 55 56 56 SRC += $(SRC_COMMON) \ 57 Common/DebugMalloc.c c57 Common/DebugMalloc.cpp 58 58 59 59 SRCDEMANGLE += $(SRC_COMMON) -
src/CompilationState.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // CompilationState.c c--7 // CompilationState.cpp -- 8 8 // 9 9 // Author : Rob Schluntz -
src/Concurrency/Corun.cpp
racb33f15 r31f4837 19 19 #include "AST/Stmt.hpp" 20 20 #include "AST/TranslationUnit.hpp" 21 #include "Common/UniqueName.h "21 #include "Common/UniqueName.hpp" 22 22 using namespace ast; 23 23 using namespace std; -
src/Concurrency/Keywords.cpp
racb33f15 r31f4837 14 14 // 15 15 16 #include "Concurrency/Keywords.h "16 #include "Concurrency/Keywords.hpp" 17 17 18 18 #include <iostream> … … 26 26 #include "AST/DeclReplacer.hpp" 27 27 #include "AST/TranslationUnit.hpp" 28 #include "CodeGen/OperatorTable.h "29 #include "Common/Examine.h "30 #include "Common/ utility.h"31 #include "Common/UniqueName.h "28 #include "CodeGen/OperatorTable.hpp" 29 #include "Common/Examine.hpp" 30 #include "Common/Utility.hpp" 31 #include "Common/UniqueName.hpp" 32 32 #include "ControlStruct/LabelGenerator.hpp" 33 #include "InitTweak/InitTweak.h "34 #include "Virtual/Tables.h "33 #include "InitTweak/InitTweak.hpp" 34 #include "Virtual/Tables.hpp" 35 35 36 36 namespace Concurrency { -
src/Concurrency/Keywords.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Keywords.h -- Implement concurrency constructs from their keywords.7 // Keywords.hpp -- Implement concurrency constructs from their keywords. 8 8 // 9 9 // Author : Thierry Delisle -
src/Concurrency/Waitfor.cpp
racb33f15 r31f4837 14 14 // 15 15 16 #include "Waitfor.h "16 #include "Waitfor.hpp" 17 17 18 18 #include <string> 19 19 20 20 #include "AST/Pass.hpp" 21 #include "Common/UniqueName.h "22 #include "InitTweak/InitTweak.h "23 #include "ResolvExpr/Resolver.h "21 #include "Common/UniqueName.hpp" 22 #include "InitTweak/InitTweak.hpp" 23 #include "ResolvExpr/Resolver.hpp" 24 24 25 25 #include "AST/Print.hpp" -
src/Concurrency/Waitfor.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Waitfor.h --7 // Waitfor.hpp -- 8 8 // 9 9 // Author : Thierry Delisle -
src/Concurrency/Waituntil.cpp
racb33f15 r31f4837 24 24 #include "AST/Stmt.hpp" 25 25 #include "AST/Type.hpp" 26 #include "Common/UniqueName.h "26 #include "Common/UniqueName.hpp" 27 27 28 28 using namespace ast; -
src/Concurrency/Waituntil.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Wait for.h--7 // Waituntil.hpp -- 8 8 // 9 9 // Author : Thierry Delisle -
src/Concurrency/module.mk
racb33f15 r31f4837 21 21 Concurrency/Corun.hpp \ 22 22 Concurrency/Keywords.cpp \ 23 Concurrency/Keywords.h \23 Concurrency/Keywords.hpp \ 24 24 Concurrency/Waitfor.cpp \ 25 Concurrency/Waitfor.h \25 Concurrency/Waitfor.hpp \ 26 26 Concurrency/Waituntil.cpp \ 27 27 Concurrency/Waituntil.hpp -
src/ControlStruct/ExceptDecl.cpp
racb33f15 r31f4837 14 14 // 15 15 16 #include "ExceptDecl.h "16 #include "ExceptDecl.hpp" 17 17 18 18 #include <sstream> … … 23 23 #include "AST/Print.hpp" 24 24 #include "AST/Type.hpp" 25 #include "Virtual/Tables.h "25 #include "Virtual/Tables.hpp" 26 26 27 27 namespace ControlStruct { -
src/ControlStruct/ExceptDecl.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ExceptDecl.h -- Handles declarations of exception types.7 // ExceptDecl.hpp -- Handles declarations of exception types. 8 8 // 9 9 // Author : Henry Xue -
src/ControlStruct/ExceptTranslate.cpp
racb33f15 r31f4837 14 14 // 15 15 16 #include "ExceptTranslate.h "16 #include "ExceptTranslate.hpp" 17 17 18 18 #include "AST/Expr.hpp" -
src/ControlStruct/module.mk
racb33f15 r31f4837 17 17 SRC += \ 18 18 ControlStruct/ExceptDecl.cpp \ 19 ControlStruct/ExceptDecl.h \19 ControlStruct/ExceptDecl.hpp \ 20 20 ControlStruct/ExceptTranslate.cpp \ 21 ControlStruct/ExceptTranslate.h \21 ControlStruct/ExceptTranslate.hpp \ 22 22 ControlStruct/FixLabels.cpp \ 23 23 ControlStruct/FixLabels.hpp \ -
src/GenPoly/Box.cpp
racb33f15 r31f4837 14 14 // 15 15 16 #include "Box.h "16 #include "Box.hpp" 17 17 18 18 #include "AST/Decl.hpp" // for Decl, FunctionDecl, ... … … 24 24 #include "AST/Vector.hpp" // for vector 25 25 #include "AST/GenericSubstitution.hpp" // for genericSubstitution 26 #include "CodeGen/OperatorTable.h "// for isAssignment26 #include "CodeGen/OperatorTable.hpp" // for isAssignment 27 27 #include "Common/Iterate.hpp" // for group_iterate 28 #include "Common/ScopedMap.h "// for ScopedMap28 #include "Common/ScopedMap.hpp" // for ScopedMap 29 29 #include "Common/ToString.hpp" // for toCString 30 #include "Common/UniqueName.h "// for UniqueName31 #include "GenPoly/FindFunction.h "// for findFunction32 #include "GenPoly/GenPoly.h "// for getFunctionType, ...33 #include "GenPoly/Lvalue.h "// for generalizedLvalue34 #include "GenPoly/ScopedSet.h "// for ScopedSet30 #include "Common/UniqueName.hpp" // for UniqueName 31 #include "GenPoly/FindFunction.hpp" // for findFunction 32 #include "GenPoly/GenPoly.hpp" // for getFunctionType, ... 33 #include "GenPoly/Lvalue.hpp" // for generalizedLvalue 34 #include "GenPoly/ScopedSet.hpp" // for ScopedSet 35 35 #include "GenPoly/ScrubTypeVars.hpp" // for scrubTypeVars, scrubAllTypeVars 36 #include "ResolvExpr/Unify.h "// for typesCompatible37 #include "SymTab/Mangler.h "// for mangle, mangleType36 #include "ResolvExpr/Unify.hpp" // for typesCompatible 37 #include "SymTab/Mangler.hpp" // for mangle, mangleType 38 38 39 39 namespace GenPoly { -
src/GenPoly/Box.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Box.h -- Implement polymorphic function calls and types.7 // Box.hpp -- Implement polymorphic function calls and types. 8 8 // 9 9 // Author : Richard C. Bilson -
src/GenPoly/ErasableScopedMap.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ErasableScopedMap.h -- A map that supports scoping and erasing elements.7 // ErasableScopedMap.hpp -- A map that supports scoping and erasing elements. 8 8 // 9 9 // Author : Aaron B. Moss -
src/GenPoly/FindFunction.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // FindFunction.c c-- Find function types in a larger type.7 // FindFunction.cpp -- Find function types in a larger type. 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "FindFunction.h "16 #include "FindFunction.hpp" 17 17 18 #include <utility> // for pair18 #include <utility> // for pair 19 19 20 #include "AST/Pass.hpp" // for Pass20 #include "AST/Pass.hpp" // for Pass 21 21 #include "AST/Type.hpp" 22 #include "GenPoly/ErasableScopedMap.h " // for ErasableScopedMap<>::iterator23 #include "GenPoly/GenPoly.h " // for TyVarMap24 #include "ScrubTypeVars.hpp" // for scrubTypeVars22 #include "GenPoly/ErasableScopedMap.hpp" // for ErasableScopedMap<>::iterator 23 #include "GenPoly/GenPoly.hpp" // for TyVarMap 24 #include "ScrubTypeVars.hpp" // for scrubTypeVars 25 25 26 26 namespace GenPoly { -
src/GenPoly/FindFunction.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // FindFunction.h -- Find function types in a larger type.7 // FindFunction.hpp -- Find function types in a larger type. 8 8 // 9 9 // Author : Richard C. Bilson … … 16 16 #pragma once 17 17 18 #include "GenPoly.h " // for TypeVarMap18 #include "GenPoly.hpp" // for TypeVarMap 19 19 20 20 namespace GenPoly { -
src/GenPoly/GenPoly.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // GenPoly.c c-- General GenPoly utilities.7 // GenPoly.cpp -- General GenPoly utilities. 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "GenPoly.h "17 18 #include <cassert> // for assertf, assert19 #include <iostream> // for operator<<, ostream, basic_os...20 #include <iterator> // for back_insert_iterator, back_in...21 #include <list> // for list, _List_iterator, list<>:...22 #include <typeindex> // for type_index23 #include <utility> // for pair24 #include <vector> // for vector16 #include "GenPoly.hpp" 17 18 #include <cassert> // for assertf, assert 19 #include <iostream> // for operator<<, ostream, basic_... 20 #include <iterator> // for back_insert_iterator, back_... 21 #include <list> // for list, _List_iterator, list<... 22 #include <typeindex> // for type_index 23 #include <utility> // for pair 24 #include <vector> // for vector 25 25 26 26 #include "AST/Expr.hpp" 27 27 #include "AST/Type.hpp" 28 28 #include "AST/TypeSubstitution.hpp" 29 #include "GenPoly/ErasableScopedMap.h " // for ErasableScopedMap<>::const_it...30 #include "ResolvExpr/ typeops.h" // for flatten29 #include "GenPoly/ErasableScopedMap.hpp" // for ErasableScopedMap<>::const_... 30 #include "ResolvExpr/Typeops.hpp" // for flatten 31 31 32 32 using namespace std; … … 256 256 257 257 // So remaining types can be examined case by case. 258 // Recurse through type structure (conditions borrowed from Unify.c c).258 // Recurse through type structure (conditions borrowed from Unify.cpp). 259 259 260 260 if ( type_index(typeid(ast::BasicType)) == lid ) { -
src/GenPoly/GenPoly.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // GenPoly.h -- General GenPoly utilities.7 // GenPoly.hpp -- General GenPoly utilities. 8 8 // 9 9 // Author : Richard C. Bilson … … 19 19 #include <string> // for string, allocator, operator+, basic... 20 20 21 #include "ErasableScopedMap.h "// for ErasableScopedMap21 #include "ErasableScopedMap.hpp" // for ErasableScopedMap 22 22 #include "AST/Decl.hpp" // for AggregateDecl 23 23 #include "AST/Fwd.hpp" // for ApplicationExpr, BaseInstType, Func... 24 #include "SymTab/Mangler.h "// for Mangler24 #include "SymTab/Mangler.hpp" // for Mangler 25 25 26 26 namespace ast { -
src/GenPoly/InstantiateGeneric.cpp
racb33f15 r31f4837 14 14 // 15 15 16 #include "InstantiateGeneric.h "16 #include "InstantiateGeneric.hpp" 17 17 18 18 #include <cassert> // for assertf, assert … … 27 27 #include "AST/TranslationUnit.hpp" // for TranslationUnit 28 28 #include "AST/Vector.hpp" // for vector 29 #include "CodeGen/OperatorTable.h "// for isAssignment30 #include "Common/ScopedMap.h "// for ScopedMap31 #include "Common/UniqueName.h "// for UniqueName32 #include "GenPoly/GenPoly.h "// for isPolyType, typesPolyCompatible29 #include "CodeGen/OperatorTable.hpp" // for isAssignment 30 #include "Common/ScopedMap.hpp" // for ScopedMap 31 #include "Common/UniqueName.hpp" // for UniqueName 32 #include "GenPoly/GenPoly.hpp" // for isPolyType, typesPolyCompatible 33 33 #include "GenPoly/ScrubTypeVars.hpp" // for scrubAllTypeVars 34 34 #include "ResolvExpr/AdjustExprType.hpp" // for adjustExprType 35 #include "ResolvExpr/Unify.h "// for typesCompatible35 #include "ResolvExpr/Unify.hpp" // for typesCompatible 36 36 37 37 namespace GenPoly { -
src/GenPoly/InstantiateGeneric.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // InstantiateGeneric.h -- Create concrete instances of generic types.7 // InstantiateGeneric.hpp -- Create concrete instances of generic types. 8 8 // 9 9 // Author : Aaron B. Moss -
src/GenPoly/Lvalue.cpp
racb33f15 r31f4837 14 14 // 15 15 16 #include "Lvalue.h "16 #include "Lvalue.hpp" 17 17 18 18 #include <set> … … 24 24 #include "AST/LinkageSpec.hpp" // for Linkage 25 25 #include "AST/Pass.hpp" 26 #include "Common/SemanticError.h "// for SemanticWarning26 #include "Common/SemanticError.hpp" // for SemanticWarning 27 27 #include "Common/ToString.hpp" // for toCString 28 #include "Common/UniqueName.h "// for UniqueName29 #include "GenPoly/GenPoly.h "// for genFunctionType30 #include "ResolvExpr/ typeops.h"// for typesCompatible31 #include "ResolvExpr/Unify.h "// for unify28 #include "Common/UniqueName.hpp" // for UniqueName 29 #include "GenPoly/GenPoly.hpp" // for genFunctionType 30 #include "ResolvExpr/Typeops.hpp" // for typesCompatible 31 #include "ResolvExpr/Unify.hpp" // for unify 32 32 33 33 #if 0 -
src/GenPoly/Lvalue.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Lvalue.h -- Clean up lvalues and remove references.7 // Lvalue.hpp -- Clean up lvalues and remove references. 8 8 // 9 9 // Author : Richard C. Bilson -
src/GenPoly/Lvalue2.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Lvalue2.c c-- Seperate Lvalue module for linking.7 // Lvalue2.cpp -- Seperate Lvalue module for linking. 8 8 // 9 9 // Author : Andrew Beach -
src/GenPoly/ScopedSet.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ScopedSet.h -- A set that supports save/restore scoping.7 // ScopedSet.hpp -- A set that supports save/restore scoping. 8 8 // 9 9 // Author : Aaron B. Moss -
src/GenPoly/ScrubTypeVars.cpp
racb33f15 r31f4837 16 16 #include "ScrubTypeVars.hpp" 17 17 18 #include <utility> // for pair18 #include <utility> // for pair 19 19 20 20 #include "AST/Pass.hpp" 21 #include "GenPoly.h " // for mangleType, TyVarMap, alignof...22 #include "GenPoly/ErasableScopedMap.h " // for ErasableScopedMap<>::const_it...23 #include "SymTab/Mangler.h " // for mangleType21 #include "GenPoly.hpp" // for mangleType, TyVarMap, align... 22 #include "GenPoly/ErasableScopedMap.hpp" // for ErasableScopedMap<>::const_... 23 #include "SymTab/Mangler.hpp" // for mangleType 24 24 25 25 namespace GenPoly { -
src/GenPoly/ScrubTypeVars.hpp
racb33f15 r31f4837 19 19 20 20 #include "AST/Fwd.hpp" // for Node 21 #include "GenPoly.h "// for TypeVarMap21 #include "GenPoly.hpp" // for TypeVarMap 22 22 23 23 namespace GenPoly { -
src/GenPoly/Specialize.cpp
racb33f15 r31f4837 14 14 // 15 15 16 #include "Specialize.h "16 #include "Specialize.hpp" 17 17 18 18 #include "AST/Copy.hpp" // for deepCopy … … 20 20 #include "AST/Pass.hpp" // for Pass 21 21 #include "AST/TypeEnvironment.hpp" // for OpenVarSet, AssertionSet 22 #include "Common/UniqueName.h "// for UniqueName23 #include "GenPoly/GenPoly.h "// for getFunctionType24 #include "ResolvExpr/FindOpenVars.h "// for findOpenVars22 #include "Common/UniqueName.hpp" // for UniqueName 23 #include "GenPoly/GenPoly.hpp" // for getFunctionType 24 #include "ResolvExpr/FindOpenVars.hpp" // for findOpenVars 25 25 26 26 namespace GenPoly { -
src/GenPoly/Specialize.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Specialize.h -- Generate thunks to specialize polymorphic functions.7 // Specialize.hpp -- Generate thunks to specialize polymorphic functions. 8 8 // 9 9 // Author : Richard C. Bilson -
src/GenPoly/module.mk
racb33f15 r31f4837 16 16 17 17 SRC_GENPOLY = \ 18 GenPoly/GenPoly.c c\19 GenPoly/GenPoly.h \20 GenPoly/Lvalue2.c c\21 GenPoly/Lvalue.h 18 GenPoly/GenPoly.cpp \ 19 GenPoly/GenPoly.hpp \ 20 GenPoly/Lvalue2.cpp \ 21 GenPoly/Lvalue.hpp 22 22 23 23 SRC += $(SRC_GENPOLY) \ 24 24 GenPoly/Box.cpp \ 25 GenPoly/Box.h \26 GenPoly/ErasableScopedMap.h \27 GenPoly/FindFunction.c c\28 GenPoly/FindFunction.h \25 GenPoly/Box.hpp \ 26 GenPoly/ErasableScopedMap.hpp \ 27 GenPoly/FindFunction.cpp \ 28 GenPoly/FindFunction.hpp \ 29 29 GenPoly/InstantiateGeneric.cpp \ 30 GenPoly/InstantiateGeneric.h \30 GenPoly/InstantiateGeneric.hpp \ 31 31 GenPoly/Lvalue.cpp \ 32 GenPoly/ScopedSet.h \32 GenPoly/ScopedSet.hpp \ 33 33 GenPoly/ScrubTypeVars.cpp \ 34 34 GenPoly/ScrubTypeVars.hpp \ 35 35 GenPoly/Specialize.cpp \ 36 GenPoly/Specialize.h 36 GenPoly/Specialize.hpp 37 37 38 38 SRCDEMANGLE += $(SRC_GENPOLY) -
src/InitTweak/FixGlobalInit.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // FixGlobalInit.c c--7 // FixGlobalInit.cpp -- 8 8 // 9 9 // Author : Rob Schluntz … … 14 14 // 15 15 16 #include "FixGlobalInit.h "16 #include "FixGlobalInit.hpp" 17 17 18 18 #include <cassert> // for assert … … 23 23 #include "AST/Node.hpp" 24 24 #include "AST/Pass.hpp" 25 #include "Common/UniqueName.h "// for UniqueName26 #include "InitTweak.h "// for isIntrinsicSingleArgCallStmt25 #include "Common/UniqueName.hpp" // for UniqueName 26 #include "InitTweak.hpp" // for isIntrinsicSingleArgCallStmt 27 27 28 28 namespace InitTweak { -
src/InitTweak/FixGlobalInit.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // FixGlobalInit.h --7 // FixGlobalInit.hpp -- 8 8 // 9 9 // Author : Rob Schluntz -
src/InitTweak/FixInit.cpp
racb33f15 r31f4837 1 #include "FixInit.h "1 #include "FixInit.hpp" 2 2 3 3 #include <stddef.h> // for NULL … … 22 22 #include "AST/SymbolTable.hpp" 23 23 #include "AST/Type.hpp" 24 #include "CodeGen/OperatorTable.h "// for isConstructor, isCtorDtor, isD...25 #include "Common/SemanticError.h "// for SemanticError24 #include "CodeGen/OperatorTable.hpp" // for isConstructor, isCtorDtor, isD... 25 #include "Common/SemanticError.hpp" // for SemanticError 26 26 #include "Common/ToString.hpp" // for toCString 27 #include "Common/UniqueName.h "// for UniqueName28 #include "FixGlobalInit.h "// for fixGlobalInit29 #include "GenInit.h "// for genCtorDtor30 #include "GenPoly/GenPoly.h "// for getFunctionType31 #include "ResolvExpr/Resolver.h "// for findVoidExpression32 #include "ResolvExpr/Unify.h "// for typesCompatible27 #include "Common/UniqueName.hpp" // for UniqueName 28 #include "FixGlobalInit.hpp" // for fixGlobalInit 29 #include "GenInit.hpp" // for genCtorDtor 30 #include "GenPoly/GenPoly.hpp" // for getFunctionType 31 #include "ResolvExpr/Resolver.hpp" // for findVoidExpression 32 #include "ResolvExpr/Unify.hpp" // for typesCompatible 33 33 #include "SymTab/GenImplicitCall.hpp" // for genImplicitCall 34 34 -
src/InitTweak/FixInit.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // FixInit.h --7 // FixInit.hpp -- 8 8 // 9 9 // Author : Rob Schluntz -
src/InitTweak/GenInit.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // GenInit.c c-- Generate initializers, and other stuff.7 // GenInit.cpp -- Generate initializers, and other stuff. 8 8 // 9 9 // Author : Rob Schluntz … … 13 13 // Update Count : 186 14 14 // 15 #include "GenInit.h "15 #include "GenInit.hpp" 16 16 17 17 #include <stddef.h> // for NULL … … 28 28 #include "AST/Stmt.hpp" 29 29 #include "CompilationState.hpp" 30 #include "CodeGen/OperatorTable.h "31 #include "Common/SemanticError.h "// for SemanticError30 #include "CodeGen/OperatorTable.hpp" 31 #include "Common/SemanticError.hpp" // for SemanticError 32 32 #include "Common/ToString.hpp" // for toCString 33 #include "Common/UniqueName.h "// for UniqueName34 #include "Common/ utility.h"// for ValueGuard, maybeClone35 #include "GenPoly/GenPoly.h "// for getFunctionType, isPolyType36 #include "GenPoly/ScopedSet.h "// for ScopedSet, ScopedSet<>::const_iter...37 #include "InitTweak.h "// for isConstExpr, InitExpander, checkIn...38 #include "ResolvExpr/Resolver.h "33 #include "Common/UniqueName.hpp" // for UniqueName 34 #include "Common/Utility.hpp" // for ValueGuard, maybeClone 35 #include "GenPoly/GenPoly.hpp" // for getFunctionType, isPolyType 36 #include "GenPoly/ScopedSet.hpp" // for ScopedSet, ScopedSet<>::const_iter... 37 #include "InitTweak.hpp" // for isConstExpr, InitExpander, checkIn... 38 #include "ResolvExpr/Resolver.hpp" 39 39 #include "SymTab/GenImplicitCall.hpp" // for genImplicitCall 40 #include "SymTab/Mangler.h" // for Mangler 41 #include "Tuples/Tuples.h" // for maybeImpure 42 #include "Validate/FindSpecialDecls.h" // for SizeType 40 #include "SymTab/Mangler.hpp" // for Mangler 41 #include "Tuples/Tuples.hpp" // for maybeImpure 43 42 44 43 namespace InitTweak { … … 334 333 335 334 ast::ConstructorInit * genCtorInit( const CodeLocation & loc, const ast::ObjectDecl * objDecl ) { 336 // call into genImplicitCall from Autogen.h to generate calls to ctor/dtor for each 337 // constructable object 335 // Call genImplicitCall to generate calls to ctor/dtor for each constructable object. 338 336 InitExpander srcParam{ objDecl->init }, nullParam{ (const ast::Init *)nullptr }; 339 337 ast::ptr< ast::Expr > dstParam = new ast::VariableExpr(loc, objDecl); -
src/InitTweak/GenInit.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // GenInit.h -- Generate initializers, and other stuff.7 // GenInit.hpp -- Generate initializers, and other stuff. 8 8 // 9 9 // Author : Rodolfo G. Esteves … … 20 20 21 21 #include "AST/Fwd.hpp" 22 #include "Common/CodeLocation.h "23 #include "GenPoly/ScopedSet.h "// for ScopedSet22 #include "Common/CodeLocation.hpp" 23 #include "GenPoly/ScopedSet.hpp" // for ScopedSet 24 24 25 25 namespace InitTweak { -
src/InitTweak/InitTweak.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // InitTweak.c c--7 // InitTweak.cpp -- 8 8 // 9 9 // Author : Rob Schluntz … … 14 14 // 15 15 16 #include "InitTweak.h "17 18 #include <algorithm> // for find, all_of19 #include <cassert> // for assertf, assert, strict_dynamic_cast20 #include <iostream> // for ostream, cerr, endl21 #include <iterator> // for back_insert_iterator, back_inserter22 #include <memory> // for __shared_ptr16 #include "InitTweak.hpp" 17 18 #include <algorithm> // for find, all_of 19 #include <cassert> // for assertf, assert, strict_dynamic_... 20 #include <iostream> // for ostream, cerr, endl 21 #include <iterator> // for back_insert_iterator, back_inser... 22 #include <memory> // for __shared_ptr 23 23 #include <vector> 24 24 … … 30 30 #include "AST/Stmt.hpp" 31 31 #include "AST/Type.hpp" 32 #include "CodeGen/OperatorTable.h " // for isConstructor, isDestructor, isCto...33 #include "Common/SemanticError.h "// for SemanticError34 #include "Common/ToString.hpp" // for toCString35 #include "Common/UniqueName.h "// for UniqueName36 #include "GenPoly/GenPoly.h "// for getFunctionType37 #include "ResolvExpr/Unify.h "// for typesCompatibleIgnoreQualifiers38 #include "Tuples/Tuples.h "// for Tuples::isTtype32 #include "CodeGen/OperatorTable.hpp" // for isConstructor, isDestructor, isC... 33 #include "Common/SemanticError.hpp" // for SemanticError 34 #include "Common/ToString.hpp" // for toCString 35 #include "Common/UniqueName.hpp" // for UniqueName 36 #include "GenPoly/GenPoly.hpp" // for getFunctionType 37 #include "ResolvExpr/Unify.hpp" // for typesCompatibleIgnoreQualifiers 38 #include "Tuples/Tuples.hpp" // for Tuples::isTtype 39 39 40 40 namespace InitTweak { -
src/InitTweak/InitTweak.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // InitTweak.h --7 // InitTweak.hpp -- 8 8 // 9 9 // Author : Rob Schluntz -
src/InitTweak/module.mk
racb33f15 r31f4837 16 16 17 17 SRC_INITTWEAK = \ 18 InitTweak/GenInit.c c\19 InitTweak/GenInit.h \20 InitTweak/InitTweak.c c\21 InitTweak/InitTweak.h 18 InitTweak/GenInit.cpp \ 19 InitTweak/GenInit.hpp \ 20 InitTweak/InitTweak.cpp \ 21 InitTweak/InitTweak.hpp 22 22 23 23 SRC += $(SRC_INITTWEAK) \ 24 InitTweak/FixGlobalInit.c c\25 InitTweak/FixGlobalInit.h \24 InitTweak/FixGlobalInit.cpp \ 25 InitTweak/FixGlobalInit.hpp \ 26 26 InitTweak/FixInit.cpp \ 27 InitTweak/FixInit.h 27 InitTweak/FixInit.hpp 28 28 29 29 SRCDEMANGLE += $(SRC_INITTWEAK) -
src/MakeLibCfa.cpp
racb33f15 r31f4837 19 19 #include "AST/Fwd.hpp" 20 20 #include "AST/Pass.hpp" 21 #include "CodeGen/OperatorTable.h "22 #include "Common/UniqueName.h "21 #include "CodeGen/OperatorTable.hpp" 22 #include "Common/UniqueName.hpp" 23 23 24 24 namespace LibCfa { -
src/Makefile.am
racb33f15 r31f4837 53 53 include Virtual/module.mk 54 54 55 $(addprefix $(srcdir)/, ResolvExpr/ConversionCost.c c ResolvExpr/CommonType.cc SymTab/ManglerCommon.cc) : $(srcdir)/AST/BasicKind.hpp55 $(addprefix $(srcdir)/, ResolvExpr/ConversionCost.cpp ResolvExpr/CommonType.cpp SymTab/ManglerCommon.cpp) : $(srcdir)/AST/BasicKind.hpp 56 56 57 57 $(srcdir)/AST/BasicKind.hpp : BasicTypes-gen.cpp … … 73 73 cfa_cpplib_PROGRAMS += $(DEMANGLER) 74 74 EXTRA_PROGRAMS = ../driver/demangler 75 ___driver_demangler_SOURCES = SymTab/demangler.c c# test driver for the demangler, also useful as a sanity check that libdemangle.a is complete75 ___driver_demangler_SOURCES = SymTab/demangler.cpp # test driver for the demangler, also useful as a sanity check that libdemangle.a is complete 76 76 ___driver_demangler_LDADD = libdemangle.a -ldl # yywrap 77 77 noinst_LIBRARIES = $(LIBDEMANGLE) -
src/Parser/DeclarationNode.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // DeclarationNode.c c--7 // DeclarationNode.cpp -- 8 8 // 9 9 // Author : Rodolfo G. Esteves … … 14 14 // 15 15 16 #include "DeclarationNode.h "17 18 #include <cassert> // for assert, assertf, strict_dynamic_cast19 #include <iterator> // for back_insert_iterator20 #include <list> // for list21 #include <memory> // for unique_ptr22 #include <ostream> // for operator<<, ostream, basic_ostream23 #include <string> // for string, operator+, allocator, char...24 25 #include "AST/Attribute.hpp" // for Attribute26 #include "AST/Copy.hpp" // for shallowCopy27 #include "AST/Decl.hpp" // for Decl28 #include "AST/Expr.hpp" // for Expr29 #include "AST/Print.hpp" // for print30 #include "AST/Stmt.hpp" // for AsmStmt, DirectiveStmt31 #include "AST/StorageClasses.hpp" // for Storage::Class32 #include "AST/Type.hpp" // for Type33 #include "Common/CodeLocation.h "// for CodeLocation34 #include "Common/Iterate.hpp" // for reverseIterate35 #include "Common/SemanticError.h "// for SemanticError36 #include "Common/UniqueName.h "// for UniqueName37 #include "Common/ utility.h"// for copy, spliceBegin38 #include "Parser/ExpressionNode.h "// for ExpressionNode39 #include "Parser/InitializerNode.h "// for InitializerNode40 #include "Parser/StatementNode.h "// for StatementNode41 #include "TypeData.h "// for TypeData, TypeData::Aggregate_t42 #include "TypedefTable.h "// for TypedefTable16 #include "DeclarationNode.hpp" 17 18 #include <cassert> // for assert, assertf, strict_dynami... 19 #include <iterator> // for back_insert_iterator 20 #include <list> // for list 21 #include <memory> // for unique_ptr 22 #include <ostream> // for operator<<, ostream, basic_ost... 23 #include <string> // for string, operator+, allocator, ... 24 25 #include "AST/Attribute.hpp" // for Attribute 26 #include "AST/Copy.hpp" // for shallowCopy 27 #include "AST/Decl.hpp" // for Decl 28 #include "AST/Expr.hpp" // for Expr 29 #include "AST/Print.hpp" // for print 30 #include "AST/Stmt.hpp" // for AsmStmt, DirectiveStmt 31 #include "AST/StorageClasses.hpp" // for Storage::Class 32 #include "AST/Type.hpp" // for Type 33 #include "Common/CodeLocation.hpp" // for CodeLocation 34 #include "Common/Iterate.hpp" // for reverseIterate 35 #include "Common/SemanticError.hpp" // for SemanticError 36 #include "Common/UniqueName.hpp" // for UniqueName 37 #include "Common/Utility.hpp" // for copy, spliceBegin 38 #include "Parser/ExpressionNode.hpp" // for ExpressionNode 39 #include "Parser/InitializerNode.hpp" // for InitializerNode 40 #include "Parser/StatementNode.hpp" // for StatementNode 41 #include "TypeData.hpp" // for TypeData, TypeData::Aggregate_t 42 #include "TypedefTable.hpp" // for TypedefTable 43 43 44 44 extern TypedefTable typedefTable; -
src/Parser/DeclarationNode.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // DeclarationNode.h --7 // DeclarationNode.hpp -- 8 8 // 9 9 // Author : Andrew Beach … … 16 16 #pragma once 17 17 18 #include "ParseNode.h "18 #include "ParseNode.hpp" 19 19 20 20 struct TypeData; -
src/Parser/ExpressionNode.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ExpressionNode.c c--7 // ExpressionNode.cpp -- 8 8 // 9 9 // Author : Peter A. Buhr … … 14 14 // 15 15 16 #include "ExpressionNode.h "16 #include "ExpressionNode.hpp" 17 17 18 18 #include <cassert> // for assert … … 26 26 #include "AST/Expr.hpp" // for NameExpr 27 27 #include "AST/Type.hpp" // for Type, LengthFlag, DimentionFlag 28 #include "Common/SemanticError.h "// for SemanticError29 #include "Common/ utility.h"// for maybeMoveBuild, maybeBuild, CodeLo...30 #include "DeclarationNode.h "// for DeclarationNode31 #include "InitializerNode.h "// for InitializerNode32 #include "TypeData.h "// for addType, build_basic_type, build_c...33 #include " parserutility.h"// for notZeroExpr28 #include "Common/SemanticError.hpp"// for SemanticError 29 #include "Common/Utility.hpp" // for maybeMoveBuild, maybeBuild, CodeLo... 30 #include "DeclarationNode.hpp" // for DeclarationNode 31 #include "InitializerNode.hpp" // for InitializerNode 32 #include "TypeData.hpp" // for addType, build_basic_type, build_c... 33 #include "ParserUtility.hpp" // for notZeroExpr 34 34 35 35 using namespace std; -
src/Parser/ExpressionNode.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ExpressionNode.h --7 // ExpressionNode.hpp -- 8 8 // 9 9 // Author : Andrew Beach … … 16 16 #pragma once 17 17 18 #include "ParseNode.h "18 #include "ParseNode.hpp" 19 19 20 20 struct InitializerNode; -
src/Parser/InitializerNode.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // InitializerNode.c c--7 // InitializerNode.cpp -- 8 8 // 9 9 // Author : Rodolfo G. Esteves … … 14 14 // 15 15 16 #include "InitializerNode.h "16 #include "InitializerNode.hpp" 17 17 18 #include <iostream> // for operator<<, ostream, basic_ostream19 #include <list> // for list20 #include <string> // for operator<<, string18 #include <iostream> // for operator<<, ostream, basic_ostream 19 #include <list> // for list 20 #include <string> // for operator<<, string 21 21 22 #include "AST/Expr.hpp" // for Expr23 #include "AST/Init.hpp" // for Designator, Init, ListInit, Sing...24 #include "Common/SemanticError.h " // for SemanticError25 #include "Common/ utility.h" // for maybeBuild26 #include "ExpressionNode.h " // for ExpressionNode27 #include "DeclarationNode.h " // for buildList22 #include "AST/Expr.hpp" // for Expr 23 #include "AST/Init.hpp" // for Designator, Init, ListInit, Sing... 24 #include "Common/SemanticError.hpp" // for SemanticError 25 #include "Common/Utility.hpp" // for maybeBuild 26 #include "ExpressionNode.hpp" // for ExpressionNode 27 #include "DeclarationNode.hpp" // for buildList 28 28 29 29 using namespace std; -
src/Parser/InitializerNode.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // InitializerNode.h --7 // InitializerNode.hpp -- 8 8 // 9 9 // Author : Andrew Beach … … 16 16 #pragma once 17 17 18 #include "ParseNode.h "18 #include "ParseNode.hpp" 19 19 20 20 struct InitializerNode final : public ParseList<InitializerNode> { -
src/Parser/ParseNode.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ParseNode.c c--7 // ParseNode.cpp -- 8 8 // 9 9 // Author : Rodolfo G. Esteves … … 14 14 // 15 15 16 #include "ParseNode.h "16 #include "ParseNode.hpp" 17 17 using namespace std; 18 18 -
src/Parser/ParseNode.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ParseNode.h --7 // ParseNode.hpp -- 8 8 // 9 9 // Author : Rodolfo G. Esteves … … 16 16 #pragma once 17 17 18 #include <algorithm> // for move19 #include <cassert> // for assert, assertf20 #include <iosfwd> // for ostream21 #include <iterator> // for back_insert_iterator22 #include <list> // for list23 #include <memory> // for unique_ptr, pointer_traits24 #include <string> // for string18 #include <algorithm> // for move 19 #include <cassert> // for assert, assertf 20 #include <iosfwd> // for ostream 21 #include <iterator> // for back_insert_iterator 22 #include <list> // for list 23 #include <memory> // for unique_ptr, pointer_traits 24 #include <string> // for string 25 25 26 #include "AST/Expr.hpp" // for Expr, NameExprLogicalFlag27 #include "AST/Fwd.hpp" // for ptr, Decl, DeclWithType,28 #include "AST/Stmt.hpp" // for Stmt29 #include "Common/CodeLocation.h " // for CodeLocation30 #include "Common/SemanticError.h " // for SemanticError31 #include "Common/UniqueName.h " // for UniqueName32 #include "Parser/ parserutility.h" // for maybeBuild, maybeCopy26 #include "AST/Expr.hpp" // for Expr, NameExpr, LogicalFlag 27 #include "AST/Fwd.hpp" // for ptr, Decl, DeclWithType, 28 #include "AST/Stmt.hpp" // for Stmt 29 #include "Common/CodeLocation.hpp" // for CodeLocation 30 #include "Common/SemanticError.hpp" // for SemanticError 31 #include "Common/UniqueName.hpp" // for UniqueName 32 #include "Parser/ParserUtility.hpp" // for maybeBuild, maybeCopy 33 33 34 34 struct DeclarationNode; -
src/Parser/ParserTypes.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // parser.hh--7 // ParserTypes.hpp -- 8 8 // 9 9 // Author : Peter A. Buhr … … 20 20 21 21 #include <string> 22 #include "ParseNode.h "22 #include "ParseNode.hpp" 23 23 // External declarations for information sharing between lexer and scanner 24 24 class TypedefTable; -
src/Parser/ParserUtility.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // parserutility.h-- Collected utilities for the parser.7 // ParserUtility.hpp -- Collected utilities for the parser. 8 8 // 9 9 // Author : Rodolfo G. Esteves -
src/Parser/RunParser.cpp
racb33f15 r31f4837 18 18 #include "AST/TranslationUnit.hpp" // for TranslationUnit 19 19 #include "Common/CodeLocationTools.hpp" // for forceFillCodeLocations 20 #include "Parser/DeclarationNode.h "// for DeclarationNode, buildList21 #include "Parser/TypedefTable.h "// for TypedefTable20 #include "Parser/DeclarationNode.hpp" // for DeclarationNode, buildList 21 #include "Parser/TypedefTable.hpp" // for TypedefTable 22 22 23 23 // Variables global to the parsing code. -
src/Parser/StatementNode.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // StatementNode.c c-- Transform from parse data-structures to AST data-structures, usually deleting the parse7 // StatementNode.cpp -- Transform from parse data-structures to AST data-structures, usually deleting the parse 8 8 // data-structure after the transformation. 9 9 // … … 15 15 // 16 16 17 #include "StatementNode.h "17 #include "StatementNode.hpp" 18 18 19 19 #include <cassert> // for assert, strict_dynamic_cast, assertf … … 23 23 #include "AST/Label.hpp" // for Label 24 24 #include "AST/Stmt.hpp" // for Stmt, AsmStmt, BranchStmt, CaseCla... 25 #include "Common/SemanticError.h "// for SemanticError26 #include "Common/ utility.h"// for maybeMoveBuild, maybeBuild27 #include "DeclarationNode.h "// for DeclarationNode28 #include "ExpressionNode.h "// for ExpressionNode29 #include " parserutility.h"// for notZeroExpr25 #include "Common/SemanticError.hpp"// for SemanticError 26 #include "Common/Utility.hpp" // for maybeMoveBuild, maybeBuild 27 #include "DeclarationNode.hpp" // for DeclarationNode 28 #include "ExpressionNode.hpp" // for ExpressionNode 29 #include "ParserUtility.hpp" // for notZeroExpr 30 30 31 31 class Declaration; -
src/Parser/StatementNode.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // StatementNode.h --7 // StatementNode.hpp -- 8 8 // 9 9 // Author : Andrew Beach … … 16 16 #pragma once 17 17 18 #include "ParseNode.h "18 #include "ParseNode.hpp" 19 19 20 20 struct StatementNode final : public ParseList<StatementNode> { -
src/Parser/TypeData.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // TypeData.c c--7 // TypeData.cpp -- 8 8 // 9 9 // Author : Rodolfo G. Esteves … … 14 14 // 15 15 16 #include "TypeData.h "17 18 #include <cassert> // for assert19 #include <ostream> // for operator<<, ostream, basic_ostream20 21 #include "AST/Attribute.hpp" // for Attribute22 #include "AST/Decl.hpp" // for AggregateDecl, ObjectDecl, TypeDe...23 #include "AST/Init.hpp" // for SingleInit, ListInit24 #include "AST/Print.hpp" // for print25 #include "AST/Type.hpp" // for Type26 #include "Common/SemanticError.h " // for SemanticError27 #include "Common/ utility.h" // for splice, spliceBegin28 #include "Common/Iterate.hpp" // for reverseIterate29 #include "Parser/ExpressionNode.h " // for ExpressionNode30 #include "Parser/StatementNode.h " // for StatementNode16 #include "TypeData.hpp" 17 18 #include <cassert> // for assert 19 #include <ostream> // for operator<<, ostream, basic_ostream 20 21 #include "AST/Attribute.hpp" // for Attribute 22 #include "AST/Decl.hpp" // for AggregateDecl, ObjectDecl, Type... 23 #include "AST/Init.hpp" // for SingleInit, ListInit 24 #include "AST/Print.hpp" // for print 25 #include "AST/Type.hpp" // for Type 26 #include "Common/SemanticError.hpp" // for SemanticError 27 #include "Common/Utility.hpp" // for splice, spliceBegin 28 #include "Common/Iterate.hpp" // for reverseIterate 29 #include "Parser/ExpressionNode.hpp" // for ExpressionNode 30 #include "Parser/StatementNode.hpp" // for StatementNode 31 31 32 32 class Attribute; -
src/Parser/TypeData.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // TypeData.h --7 // TypeData.hpp -- 8 8 // 9 9 // Author : Peter A. Buhr … … 22 22 #include "AST/CVQualifiers.hpp" // for CV 23 23 #include "AST/Fwd.hpp" // for Type 24 #include "DeclarationNode.h "// for DeclarationNode24 #include "DeclarationNode.hpp" // for DeclarationNode 25 25 26 26 struct TypeData { -
src/Parser/TypedefTable.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // TypedefTable.c c--7 // TypedefTable.cpp -- 8 8 // 9 9 // Author : Peter A. Buhr … … 15 15 16 16 17 #include "TypedefTable.h "17 #include "TypedefTable.hpp" 18 18 19 19 #include <cassert> // for assert … … 23 23 struct TypeData; 24 24 25 #include "ExpressionNode.h "// for LabelNode26 #include "ParserTypes.h " // for Token27 #include "StatementNode.h "// for CondCtl, ForCtrl25 #include "ExpressionNode.hpp" // for LabelNode 26 #include "ParserTypes.hpp" // for Token 27 #include "StatementNode.hpp" // for CondCtl, ForCtrl 28 28 // This (generated) header must come late as it is missing includes. 29 29 #include "parser.hh" // for IDENTIFIER, TYPEDEFname, TYPEGENname -
src/Parser/TypedefTable.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // TypedefTable.h --7 // TypedefTable.hpp -- 8 8 // 9 9 // Author : Peter A. Buhr … … 18 18 #include <string> // for string 19 19 20 #include "Common/ScopedMap.h " // for ScopedMap20 #include "Common/ScopedMap.hpp" // for ScopedMap 21 21 22 22 class TypedefTable { -
src/Parser/lex.ll
racb33f15 r31f4837 44 44 45 45 #include "config.h" // configure info 46 #include "DeclarationNode.h "// for DeclarationNode47 #include "ExpressionNode.h "// for LabelNode48 #include "InitializerNode.h "// for InitializerNode49 #include "ParseNode.h "50 #include "ParserTypes.h "// for Token51 #include "StatementNode.h "// for CondCtl, ForCtrl52 #include "TypedefTable.h "46 #include "DeclarationNode.hpp" // for DeclarationNode 47 #include "ExpressionNode.hpp" // for LabelNode 48 #include "InitializerNode.hpp" // for InitializerNode 49 #include "ParseNode.hpp" 50 #include "ParserTypes.hpp" // for Token 51 #include "StatementNode.hpp" // for CondCtl, ForCtrl 52 #include "TypedefTable.hpp" 53 53 // This (generated) header must come late as it is missing includes. 54 54 #include "parser.hh" // generated info -
src/Parser/module.mk
racb33f15 r31f4837 20 20 21 21 SRC += \ 22 Parser/DeclarationNode.c c\23 Parser/DeclarationNode.h \24 Parser/ExpressionNode.c c\25 Parser/ExpressionNode.h \26 Parser/InitializerNode.c c\27 Parser/InitializerNode.h \22 Parser/DeclarationNode.cpp \ 23 Parser/DeclarationNode.hpp \ 24 Parser/ExpressionNode.cpp \ 25 Parser/ExpressionNode.hpp \ 26 Parser/InitializerNode.cpp \ 27 Parser/InitializerNode.hpp \ 28 28 Parser/lex.ll \ 29 Parser/ParseNode.c c\30 Parser/ParseNode.h \29 Parser/ParseNode.cpp \ 30 Parser/ParseNode.hpp \ 31 31 Parser/parser.yy \ 32 Parser/ParserTypes.h \33 Parser/ parserutility.h\32 Parser/ParserTypes.hpp \ 33 Parser/ParserUtility.hpp \ 34 34 Parser/RunParser.cpp \ 35 35 Parser/RunParser.hpp \ 36 Parser/StatementNode.c c\37 Parser/StatementNode.h \38 Parser/TypeData.c c\39 Parser/TypeData.h \40 Parser/TypedefTable.c c\41 Parser/TypedefTable.h 36 Parser/StatementNode.cpp \ 37 Parser/StatementNode.hpp \ 38 Parser/TypeData.cpp \ 39 Parser/TypeData.hpp \ 40 Parser/TypedefTable.cpp \ 41 Parser/TypedefTable.hpp 42 42 43 MOSTLYCLEANFILES += Parser/lex.cc Parser/parser.cc Parser/parser.hh Parser/parser.output 43 MOSTLYCLEANFILES += \ 44 Parser/lex.cc \ 45 Parser/parser.cc \ 46 Parser/parser.hh \ 47 Parser/parser.output -
src/Parser/parser.yy
racb33f15 r31f4837 48 48 using namespace std; 49 49 50 #include "DeclarationNode.h "// for DeclarationNode, ...51 #include "ExpressionNode.h "// for ExpressionNode, ...52 #include "InitializerNode.h "// for InitializerNode, ...53 #include "ParserTypes.h "54 #include "StatementNode.h "// for build_...55 #include "TypedefTable.h "56 #include "TypeData.h "50 #include "DeclarationNode.hpp" // for DeclarationNode, ... 51 #include "ExpressionNode.hpp" // for ExpressionNode, ... 52 #include "InitializerNode.hpp" // for InitializerNode, ... 53 #include "ParserTypes.hpp" 54 #include "StatementNode.hpp" // for build_... 55 #include "TypedefTable.hpp" 56 #include "TypeData.hpp" 57 57 #include "AST/Type.hpp" // for BasicType, BasicKind 58 #include "Common/SemanticError.h "// error_str59 #include "Common/ utility.h"// for maybeMoveBuild, maybeBuild, CodeLo...58 #include "Common/SemanticError.hpp" // error_str 59 #include "Common/Utility.hpp" // for maybeMoveBuild, maybeBuild, CodeLo... 60 60 61 61 // lex uses __null in a boolean context, it's fine. -
src/ResolvExpr/AdjustExprType.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // AdjustExprType _old.cc--7 // AdjustExprType.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson -
src/ResolvExpr/Candidate.hpp
racb33f15 r31f4837 20 20 #include <vector> 21 21 22 #include "Cost.h "22 #include "Cost.hpp" 23 23 #include "AST/Node.hpp" 24 24 #include "AST/TypeEnvironment.hpp" 25 #include "Common/Indenter.h "25 #include "Common/Indenter.hpp" 26 26 27 27 namespace ast { -
src/ResolvExpr/CandidateFinder.cpp
racb33f15 r31f4837 17 17 18 18 #include <deque> 19 #include <iterator> // for back_inserter19 #include <iterator> // for back_inserter 20 20 #include <sstream> 21 21 #include <string> … … 25 25 #include "AdjustExprType.hpp" 26 26 #include "Candidate.hpp" 27 #include "CastCost.hpp" // for castCost27 #include "CastCost.hpp" // for castCost 28 28 #include "CompilationState.hpp" 29 #include "ConversionCost.h " // for conversionCast30 #include "Cost.h "29 #include "ConversionCost.hpp" // for conversionCast 30 #include "Cost.hpp" 31 31 #include "ExplodedArg.hpp" 32 32 #include "PolyCost.hpp" 33 #include "RenameVars.h " // for renameTyVars34 #include "Resolver.h "35 #include "ResolveTypeof.h "33 #include "RenameVars.hpp" // for renameTyVars 34 #include "Resolver.hpp" 35 #include "ResolveTypeof.hpp" 36 36 #include "SatisfyAssertions.hpp" 37 37 #include "SpecCost.hpp" 38 #include " typeops.h" // for combos39 #include "Unify.h "40 #include "WidenMode.h "38 #include "Typeops.hpp" // for combos 39 #include "Unify.hpp" 40 #include "WidenMode.hpp" 41 41 #include "AST/Expr.hpp" 42 42 #include "AST/Node.hpp" … … 45 45 #include "AST/SymbolTable.hpp" 46 46 #include "AST/Type.hpp" 47 #include "Common/ utility.h" // for move, copy48 #include "SymTab/Mangler.h "49 #include "Tuples/Tuples.h " // for handleTupleAssignment50 #include "InitTweak/InitTweak.h " // for getPointerBase51 52 #include "Common/Stats/Counter.h "47 #include "Common/Utility.hpp" // for move, copy 48 #include "SymTab/Mangler.hpp" 49 #include "Tuples/Tuples.hpp" // for handleTupleAssignment 50 #include "InitTweak/InitTweak.hpp" // for getPointerBase 51 52 #include "Common/Stats/Counter.hpp" 53 53 54 54 #include "AST/Inspect.hpp" // for getFunctionName -
src/ResolvExpr/CandidatePrinter.cpp
racb33f15 r31f4837 24 24 #include "AST/TranslationUnit.hpp" 25 25 #include "ResolvExpr/CandidateFinder.hpp" 26 #include "ResolvExpr/Resolver.h "26 #include "ResolvExpr/Resolver.hpp" 27 27 28 28 namespace ResolvExpr { -
src/ResolvExpr/CastCost.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // CastCost.c c--7 // CastCost.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 22 22 #include "AST/Type.hpp" 23 23 #include "AST/TypeEnvironment.hpp" 24 #include "ConversionCost.h "// for ConversionCost25 #include "Cost.h "// for Cost, Cost::infinity26 #include "ResolvExpr/ConversionCost.h "// for conversionCost24 #include "ConversionCost.hpp" // for ConversionCost 25 #include "Cost.hpp" // for Cost, Cost::infinity 26 #include "ResolvExpr/ConversionCost.hpp" // for conversionCost 27 27 #include "ResolvExpr/PtrsCastable.hpp" // for ptrsCastable 28 #include "ResolvExpr/Unify.h "// for typesCompatibleIgnoreQualifiers28 #include "ResolvExpr/Unify.hpp" // for typesCompatibleIgnoreQualifiers 29 29 30 30 #if 0 -
src/ResolvExpr/CastCost.hpp
racb33f15 r31f4837 16 16 #pragma once 17 17 18 #include "ResolvExpr/Cost.h" // for Cost19 20 18 namespace ast { 21 19 class SymbolTable; … … 25 23 26 24 namespace ResolvExpr { 25 26 class Cost; 27 27 28 28 Cost castCost( -
src/ResolvExpr/CommonType.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // CommonType.c c--7 // CommonType.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 23 23 #include "AST/Pass.hpp" 24 24 #include "AST/Type.hpp" 25 #include "Unify.h "// for unifyExact, WidenMode26 #include " typeops.h"// for isFtype27 #include "Tuples/Tuples.h "25 #include "Unify.hpp" // for unifyExact, WidenMode 26 #include "Typeops.hpp" // for isFtype 27 #include "Tuples/Tuples.hpp" 28 28 29 29 // #define DEBUG -
src/ResolvExpr/CommonType.hpp
racb33f15 r31f4837 18 18 #include "AST/Fwd.hpp" 19 19 #include "AST/TypeEnvironment.hpp" // for AssertionSet, OpenVarSet 20 #include "WidenMode.h "// for WidenMode20 #include "WidenMode.hpp" // for WidenMode 21 21 22 22 namespace ResolvExpr { -
src/ResolvExpr/ConversionCost.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ConversionCost.c c--7 // ConversionCost.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "ConversionCost.h "16 #include "ConversionCost.hpp" 17 17 18 18 #include <cassert> // for assert … … 20 20 #include <string> // for operator==, string 21 21 22 #include "ResolvExpr/Cost.h "// for Cost23 #include "ResolvExpr/Unify.h "// for typesCompatibleIgnoreQualifiers22 #include "ResolvExpr/Cost.hpp" // for Cost 23 #include "ResolvExpr/Unify.hpp" // for typesCompatibleIgnoreQualifiers 24 24 #include "ResolvExpr/PtrsAssignable.hpp" // for ptrsAssignable 25 25 -
src/ResolvExpr/ConversionCost.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ConversionCost.h --7 // ConversionCost.hpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 18 18 #include <functional> // for function 19 19 20 #include "Cost.h "// for Cost20 #include "Cost.hpp" // for Cost 21 21 22 22 #include "AST/Fwd.hpp" -
src/ResolvExpr/CurrentObject.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // CurrentObject. h--7 // CurrentObject.cpp -- 8 8 // 9 9 // Author : Rob Schluntz … … 14 14 // 15 15 16 #include "CurrentObject.hpp" 17 16 18 #include <stddef.h> // for size_t 17 19 #include <cassert> // for assertf, assert, safe_dynamic_... … … 28 30 #include "AST/Print.hpp" // for readonly 29 31 #include "AST/Type.hpp" 30 #include "Common/Eval.h" // for eval 31 #include "Common/Indenter.h" // for Indenter, operator<< 32 #include "Common/SemanticError.h" // for SemanticError 33 #include "Common/utility.h" // for toString 34 #include "CurrentObject.h" 32 #include "Common/Eval.hpp" // for eval 33 #include "Common/Indenter.hpp" // for Indenter, operator<< 34 #include "Common/SemanticError.hpp" // for SemanticError 35 #include "Common/Utility.hpp" // for toString 35 36 36 37 #if 0 -
src/ResolvExpr/CurrentObject.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // CurrentObject.h --7 // CurrentObject.hpp -- 8 8 // 9 9 // Author : Rob Schluntz … … 21 21 22 22 #include "AST/Node.hpp" // for ptr 23 #include "Common/CodeLocation.h "23 #include "Common/CodeLocation.hpp" 24 24 25 25 namespace ast { -
src/ResolvExpr/ExplodedArg.cpp
racb33f15 r31f4837 16 16 #include "ExplodedArg.hpp" 17 17 18 #include "Tuples/Explode.h " // for Tuples::explode18 #include "Tuples/Explode.hpp" // for Tuples::explode 19 19 20 20 namespace ResolvExpr { -
src/ResolvExpr/ExplodedArg.hpp
racb33f15 r31f4837 19 19 20 20 #include "Candidate.hpp" // for Candidate, CandidateList 21 #include "Cost.h "// for Cost21 #include "Cost.hpp" // for Cost 22 22 #include "AST/Expr.hpp" 23 23 #include "AST/Node.hpp" // for ptr -
src/ResolvExpr/FindOpenVars.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // FindOpenVars.c c--7 // FindOpenVars.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "FindOpenVars.h "16 #include "FindOpenVars.hpp" 17 17 18 18 #include "AST/Pass.hpp" -
src/ResolvExpr/PolyCost.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // PolyCost.c c--7 // PolyCost.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson -
src/ResolvExpr/PtrsAssignable.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // PtrsAssignable.c c--7 // PtrsAssignable.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson -
src/ResolvExpr/PtrsCastable.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // PtrsCastable.c c--7 // PtrsCastable.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson -
src/ResolvExpr/RenameVars.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // RenameVars.c c--7 // RenameVars.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include <ext/alloc_traits.h> // for __alloc_traits<>::value_type17 #include <memory> // for allocator_traits<>::value_type18 #include <sstream> // for operator<<, basic_ostream, ostring...19 #include <utility> // for pair16 #include <ext/alloc_traits.h> // for __alloc_traits<>::value_type 17 #include <memory> // for allocator_traits<>::value_type 18 #include <sstream> // for operator<<, basic_ostream, ostr... 19 #include <utility> // for pair 20 20 21 21 #include "AST/Pass.hpp" 22 22 #include "AST/Type.hpp" 23 #include "Common/ScopedMap.h "24 #include "Common/SemanticError.h "// for SemanticError25 #include "RenameVars.h "23 #include "Common/ScopedMap.hpp" 24 #include "Common/SemanticError.hpp" // for SemanticError 25 #include "RenameVars.hpp" 26 26 27 27 #include "AST/Copy.hpp" -
src/ResolvExpr/RenameVars.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // RenameVars.h --7 // RenameVars.hpp -- 8 8 // 9 9 // Author : Richard C. Bilson -
src/ResolvExpr/ResolveTypeof.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ResolveTypeof.c c--7 // ResolveTypeof.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "ResolveTypeof.h "16 #include "ResolveTypeof.hpp" 17 17 18 #include <cassert> // for assert18 #include <cassert> // for assert 19 19 20 20 #include "AST/CVQualifiers.hpp" … … 24 24 #include "AST/Type.hpp" 25 25 #include "AST/TypeEnvironment.hpp" 26 #include "Common/ utility.h" // for copy27 #include "InitTweak/InitTweak.h " // for isConstExpr28 #include "RenameVars.h "29 #include "Resolver.h "// for resolveInVoidContext30 #include "SymTab/Mangler.h "26 #include "Common/Utility.hpp" // for copy 27 #include "InitTweak/InitTweak.hpp" // for isConstExpr 28 #include "RenameVars.hpp" 29 #include "Resolver.hpp" // for resolveInVoidContext 30 #include "SymTab/Mangler.hpp" 31 31 32 32 namespace ResolvExpr { -
src/ResolvExpr/ResolveTypeof.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ResolveTypeof.h --7 // ResolveTypeof.hpp -- 8 8 // 9 9 // Author : Richard C. Bilson -
src/ResolvExpr/Resolver.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Resolver.c c--7 // Resolver.cpp -- 8 8 // 9 9 // Author : Aaron B. Moss … … 21 21 #include "Candidate.hpp" 22 22 #include "CandidateFinder.hpp" 23 #include "CurrentObject.h "// for CurrentObject24 #include "RenameVars.h "// for RenameVars, global_renamer25 #include "Resolver.h "26 #include "ResolveTypeof.h "23 #include "CurrentObject.hpp" // for CurrentObject 24 #include "RenameVars.hpp" // for RenameVars, global_renamer 25 #include "Resolver.hpp" 26 #include "ResolveTypeof.hpp" 27 27 #include "ResolveMode.hpp" // for ResolveMode 28 #include " typeops.h"// for extractResultType29 #include "Unify.h "// for unify28 #include "Typeops.hpp" // for extractResultType 29 #include "Unify.hpp" // for unify 30 30 #include "CompilationState.hpp" 31 31 #include "AST/Decl.hpp" … … 35 35 #include "AST/SymbolTable.hpp" 36 36 #include "AST/Type.hpp" 37 #include "Common/Eval.h "// for eval37 #include "Common/Eval.hpp" // for eval 38 38 #include "Common/Iterate.hpp" // for group_iterate 39 #include "Common/SemanticError.h "// for SemanticError40 #include "Common/Stats/ResolveTime.h "// for ResolveTime::start(), ResolveTime::stop()39 #include "Common/SemanticError.hpp" // for SemanticError 40 #include "Common/Stats/ResolveTime.hpp" // for ResolveTime::start(), ResolveTime::stop() 41 41 #include "Common/ToString.hpp" // for toCString 42 #include "Common/UniqueName.h "// for UniqueName43 #include "InitTweak/GenInit.h "44 #include "InitTweak/InitTweak.h "// for isIntrinsicSingleArgCallStmt45 #include "SymTab/Mangler.h "// for Mangler46 #include "Tuples/Tuples.h "47 #include "Validate/FindSpecialDecls.h "// for SizeType42 #include "Common/UniqueName.hpp" // for UniqueName 43 #include "InitTweak/GenInit.hpp" 44 #include "InitTweak/InitTweak.hpp" // for isIntrinsicSingleArgCallStmt 45 #include "SymTab/Mangler.hpp" // for Mangler 46 #include "Tuples/Tuples.hpp" 47 #include "Validate/FindSpecialDecls.hpp" // for SizeType 48 48 49 49 using namespace std; -
src/ResolvExpr/Resolver.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Resolver.h --7 // Resolver.hpp -- 8 8 // 9 9 // Author : Richard C. Bilson -
src/ResolvExpr/SatisfyAssertions.cpp
racb33f15 r31f4837 28 28 #include "CandidateFinder.hpp" 29 29 #include "CommonType.hpp" 30 #include "Cost.h "31 #include "RenameVars.h "30 #include "Cost.hpp" 31 #include "RenameVars.hpp" 32 32 #include "SpecCost.hpp" 33 #include " typeops.h"34 #include "Unify.h "33 #include "Typeops.hpp" 34 #include "Unify.hpp" 35 35 #include "AST/Decl.hpp" 36 36 #include "AST/Expr.hpp" … … 40 40 #include "AST/SymbolTable.hpp" 41 41 #include "AST/TypeEnvironment.hpp" 42 #include "FindOpenVars.h "43 #include "Common/FilterCombos.h "44 #include "Common/Indenter.h "45 #include "GenPoly/GenPoly.h "46 #include "SymTab/Mangler.h "42 #include "FindOpenVars.hpp" 43 #include "Common/FilterCombos.hpp" 44 #include "Common/Indenter.hpp" 45 #include "GenPoly/GenPoly.hpp" 46 #include "SymTab/Mangler.hpp" 47 47 48 48 namespace ResolvExpr { -
src/ResolvExpr/SpecCost.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // SpecCost.c c--7 // SpecCost.cpp -- 8 8 // 9 9 // Author : Aaron B. Moss -
src/ResolvExpr/Typeops.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // typeops.h--7 // Typeops.hpp -- 8 8 // 9 9 // Author : Richard C. Bilson -
src/ResolvExpr/Unify.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Unify.c c--7 // Unify.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "Unify.h "16 #include "Unify.hpp" 17 17 18 18 #include <cassert> // for assertf, assert … … 32 32 #include "AST/Type.hpp" 33 33 #include "AST/TypeEnvironment.hpp" 34 #include "Common/Eval.h "// for eval34 #include "Common/Eval.hpp" // for eval 35 35 #include "CommonType.hpp" // for commonType 36 #include "FindOpenVars.h "// for findOpenVars36 #include "FindOpenVars.hpp" // for findOpenVars 37 37 #include "SpecCost.hpp" // for SpecCost 38 #include "Tuples/Tuples.h "// for isTtype39 #include " typeops.h"// for flatten, occurs38 #include "Tuples/Tuples.hpp" // for isTtype 39 #include "Typeops.hpp" // for flatten, occurs 40 40 41 41 namespace ast { -
src/ResolvExpr/Unify.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Unify.h --7 // Unify.hpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 18 18 #include "AST/Node.hpp" // for ptr 19 19 #include "AST/TypeEnvironment.hpp" // for TypeEnvironment, AssertionSet, OpenVarSet 20 #include "WidenMode.h "// for WidenMode20 #include "WidenMode.hpp" // for WidenMode 21 21 22 22 namespace ast { -
src/ResolvExpr/module.mk
racb33f15 r31f4837 16 16 17 17 SRC_RESOLVEXPR = \ 18 ResolvExpr/AdjustExprType.c c\18 ResolvExpr/AdjustExprType.cpp \ 19 19 ResolvExpr/AdjustExprType.hpp \ 20 20 ResolvExpr/Candidate.cpp \ … … 22 22 ResolvExpr/CandidateFinder.hpp \ 23 23 ResolvExpr/Candidate.hpp \ 24 ResolvExpr/CastCost.c c\24 ResolvExpr/CastCost.cpp \ 25 25 ResolvExpr/CastCost.hpp \ 26 ResolvExpr/CommonType.c c\26 ResolvExpr/CommonType.cpp \ 27 27 ResolvExpr/CommonType.hpp \ 28 ResolvExpr/ConversionCost.c c\29 ResolvExpr/ConversionCost.h \30 ResolvExpr/Cost.h \31 ResolvExpr/CurrentObject.c c\32 ResolvExpr/CurrentObject.h \28 ResolvExpr/ConversionCost.cpp \ 29 ResolvExpr/ConversionCost.hpp \ 30 ResolvExpr/Cost.hpp \ 31 ResolvExpr/CurrentObject.cpp \ 32 ResolvExpr/CurrentObject.hpp \ 33 33 ResolvExpr/ExplodedArg.cpp \ 34 34 ResolvExpr/ExplodedArg.hpp \ 35 ResolvExpr/FindOpenVars.c c\36 ResolvExpr/FindOpenVars.h \37 ResolvExpr/PolyCost.c c\35 ResolvExpr/FindOpenVars.cpp \ 36 ResolvExpr/FindOpenVars.hpp \ 37 ResolvExpr/PolyCost.cpp \ 38 38 ResolvExpr/PolyCost.hpp \ 39 ResolvExpr/PtrsAssignable.c c\39 ResolvExpr/PtrsAssignable.cpp \ 40 40 ResolvExpr/PtrsAssignable.hpp \ 41 ResolvExpr/PtrsCastable.c c\41 ResolvExpr/PtrsCastable.cpp \ 42 42 ResolvExpr/PtrsCastable.hpp \ 43 ResolvExpr/RenameVars.c c\44 ResolvExpr/RenameVars.h \45 ResolvExpr/Resolver.c c\46 ResolvExpr/Resolver.h \47 ResolvExpr/ResolveTypeof.c c\48 ResolvExpr/ResolveTypeof.h \43 ResolvExpr/RenameVars.cpp \ 44 ResolvExpr/RenameVars.hpp \ 45 ResolvExpr/Resolver.cpp \ 46 ResolvExpr/Resolver.hpp \ 47 ResolvExpr/ResolveTypeof.cpp \ 48 ResolvExpr/ResolveTypeof.hpp \ 49 49 ResolvExpr/ResolveMode.hpp \ 50 50 ResolvExpr/SatisfyAssertions.cpp \ 51 51 ResolvExpr/SatisfyAssertions.hpp \ 52 ResolvExpr/SpecCost.c c\52 ResolvExpr/SpecCost.cpp \ 53 53 ResolvExpr/SpecCost.hpp \ 54 ResolvExpr/ typeops.h\55 ResolvExpr/Unify.c c\56 ResolvExpr/Unify.h \57 ResolvExpr/WidenMode.h 54 ResolvExpr/Typeops.hpp \ 55 ResolvExpr/Unify.cpp \ 56 ResolvExpr/Unify.hpp \ 57 ResolvExpr/WidenMode.hpp 58 58 59 59 SRC += $(SRC_RESOLVEXPR) \ -
src/SymTab/Demangle.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Demangle.c c-- Convert a mangled name into a human readable name.7 // Demangle.cpp -- Convert a mangled name into a human readable name. 8 8 // 9 9 // Author : Rob Schluntz … … 19 19 #include "AST/Pass.hpp" 20 20 #include "AST/Type.hpp" 21 #include "CodeGen/GenType.h "22 #include "CodeGen/OperatorTable.h "23 #include "Common/ utility.h" // isPrefix24 #include "Mangler.h "21 #include "CodeGen/GenType.hpp" 22 #include "CodeGen/OperatorTable.hpp" 23 #include "Common/Utility.hpp" // isPrefix 24 #include "Mangler.hpp" 25 25 26 26 #define DEBUG -
src/SymTab/Demangle.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Demangle.h -- Convert a mangled name into a human readable name.7 // Demangle.hpp -- Convert a mangled name into a human readable name. 8 8 // 9 9 // Author : Andrew Beach -
src/SymTab/FixFunction.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // FixFunction.c c--7 // FixFunction.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "FixFunction.h "16 #include "FixFunction.hpp" 17 17 18 18 #include <list> // for list … … 21 21 #include "AST/Pass.hpp" 22 22 #include "AST/Type.hpp" 23 #include "Common/ utility.h"// for copy23 #include "Common/Utility.hpp" // for copy 24 24 25 25 namespace SymTab { -
src/SymTab/FixFunction.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // FixFunction.h --7 // FixFunction.hpp -- 8 8 // 9 9 // Author : Richard C. Bilson -
src/SymTab/GenImplicitCall.cpp
racb33f15 r31f4837 23 23 #include "AST/Stmt.hpp" // for ExprStmt 24 24 #include "AST/Type.hpp" // for ArrayType, BasicType, ... 25 #include "CodeGen/OperatorTable.h "// for isCtorDtor26 #include "Common/UniqueName.h "// for UniqueName27 #include "Common/ utility.h"// for splice25 #include "CodeGen/OperatorTable.hpp" // for isCtorDtor 26 #include "Common/UniqueName.hpp" // for UniqueName 27 #include "Common/Utility.hpp" // for splice 28 28 29 29 namespace SymTab { -
src/SymTab/GenImplicitCall.hpp
racb33f15 r31f4837 16 16 #pragma once 17 17 18 #include "InitTweak/InitTweak.h " // for InitExpander18 #include "InitTweak/InitTweak.hpp" // for InitExpander 19 19 20 20 namespace SymTab { -
src/SymTab/Mangler.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Mangler.c c--7 // Mangler.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 13 13 // Update Count : 75 14 14 // 15 #include "Mangler.h "15 #include "Mangler.hpp" 16 16 17 17 #include <algorithm> // for copy, transform … … 23 23 24 24 #include "AST/Pass.hpp" 25 #include "CodeGen/OperatorTable.h "// for OperatorInfo, operatorLookup25 #include "CodeGen/OperatorTable.hpp" // for OperatorInfo, operatorLookup 26 26 #include "Common/ToString.hpp" // for toCString 27 #include "Common/SemanticError.h "// for SemanticError27 #include "Common/SemanticError.hpp" // for SemanticError 28 28 29 29 namespace Mangle { -
src/SymTab/Mangler.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Mangler.h --7 // Mangler.hpp -- 8 8 // 9 9 // Author : Richard C. Bilson -
src/SymTab/ManglerCommon.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Mangler .h--7 // ManglerCommon.cpp -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "Mangler.h "16 #include "Mangler.hpp" 17 17 18 18 #include "AST/Decl.hpp" -
src/SymTab/demangler.cpp
racb33f15 r31f4837 1 #include "Demangle.h "1 #include "Demangle.hpp" 2 2 #include <iostream> 3 3 #include <fstream> -
src/SymTab/module.mk
racb33f15 r31f4837 16 16 17 17 SRC_SYMTAB = \ 18 SymTab/FixFunction.c c\19 SymTab/FixFunction.h \18 SymTab/FixFunction.cpp \ 19 SymTab/FixFunction.hpp \ 20 20 SymTab/GenImplicitCall.cpp \ 21 21 SymTab/GenImplicitCall.hpp \ 22 SymTab/Mangler.c c\23 SymTab/ManglerCommon.c c\24 SymTab/Mangler.h 22 SymTab/Mangler.cpp \ 23 SymTab/ManglerCommon.cpp \ 24 SymTab/Mangler.hpp 25 25 26 26 SRC += $(SRC_SYMTAB) 27 27 28 28 SRCDEMANGLE += $(SRC_SYMTAB) \ 29 SymTab/Demangle.c c\30 SymTab/Demangle.h 29 SymTab/Demangle.cpp \ 30 SymTab/Demangle.hpp -
src/Tuples/Explode.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Explode.c c--7 // Explode.cpp -- 8 8 // 9 9 // Author : Rob Schluntz … … 14 14 // 15 15 16 #include "Explode.h "16 #include "Explode.hpp" 17 17 18 18 #include "AST/Pass.hpp" // for Pass -
src/Tuples/Explode.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Explode.h --7 // Explode.hpp -- 8 8 // 9 9 // Author : Rob Schluntz … … 22 22 #include "ResolvExpr/Candidate.hpp" // for Candidate, CandidateList 23 23 #include "ResolvExpr/ExplodedArg.hpp" // for ExplodedArg 24 #include "Tuples.h "// for maybeImpure24 #include "Tuples.hpp" // for maybeImpure 25 25 26 26 namespace ast { -
src/Tuples/TupleAssignment.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // TupleAssignment.c c--7 // TupleAssignment.cpp -- 8 8 // 9 9 // Author : Rodolfo G. Esteves … … 14 14 // 15 15 16 #include "Tuples.h "16 #include "Tuples.hpp" 17 17 18 18 #include <algorithm> // for transform … … 29 29 #include "AST/Stmt.hpp" 30 30 #include "AST/TypeEnvironment.hpp" 31 #include "CodeGen/OperatorTable.h "32 #include "Common/UniqueName.h "// for UniqueName33 #include "Common/ utility.h"// for splice, zipWith34 #include "Explode.h "// for explode35 #include "InitTweak/GenInit.h "// for genCtorInit36 #include "InitTweak/InitTweak.h "// for getPointerBase, isAssignment31 #include "CodeGen/OperatorTable.hpp" 32 #include "Common/UniqueName.hpp" // for UniqueName 33 #include "Common/Utility.hpp" // for splice, zipWith 34 #include "Explode.hpp" // for explode 35 #include "InitTweak/GenInit.hpp" // for genCtorInit 36 #include "InitTweak/InitTweak.hpp" // for getPointerBase, isAssignment 37 37 #include "ResolvExpr/CandidateFinder.hpp" // for CandidateFinder 38 #include "ResolvExpr/Cost.h "// for Cost39 #include "ResolvExpr/Resolver.h "// for resolveCtorInit40 #include "ResolvExpr/ typeops.h"// for combos38 #include "ResolvExpr/Cost.hpp" // for Cost 39 #include "ResolvExpr/Resolver.hpp" // for resolveCtorInit 40 #include "ResolvExpr/Typeops.hpp" // for combos 41 41 42 42 #if 0 -
src/Tuples/TupleExpansion.cpp
racb33f15 r31f4837 14 14 // 15 15 16 #include "Tuples.h "16 #include "Tuples.hpp" 17 17 18 18 #include "AST/Pass.hpp" 19 #include "Common/ScopedMap.h "19 #include "Common/ScopedMap.hpp" 20 20 21 21 namespace Tuples { -
src/Tuples/Tuples.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Tuples.c c-- A collection of tuple operations.7 // Tuples.cpp -- A collection of tuple operations. 8 8 // 9 9 // Author : Andrew Beach … … 14 14 // 15 15 16 #include "Tuples.h "16 #include "Tuples.hpp" 17 17 18 18 #include "AST/Pass.hpp" 19 19 #include "AST/Inspect.hpp" 20 20 #include "AST/LinkageSpec.hpp" 21 #include "InitTweak/InitTweak.h "21 #include "InitTweak/InitTweak.hpp" 22 22 23 23 namespace Tuples { -
src/Tuples/Tuples.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Tuples.h -- A collection of tuple operations.7 // Tuples.hpp -- A collection of tuple operations. 8 8 // 9 9 // Author : Rodolfo G. Esteves … … 27 27 namespace Tuples { 28 28 29 // TupleAssignment.c c29 // TupleAssignment.cpp 30 30 void handleTupleAssignment( 31 31 ResolvExpr::CandidateFinder & finder, const ast::UntypedExpr * assign, 32 32 std::vector< ResolvExpr::CandidateFinder > & args ); 33 33 34 // TupleExpansion.c c34 // TupleExpansion.cpp 35 35 /// Expands z.[a, b.[x, y], c] into [z.a, z.b.x, z.b.y, z.c], inserting UniqueExprs as appropriate. 36 36 void expandMemberTuples( ast::TranslationUnit & translationUnit ); -
src/Tuples/module.mk
racb33f15 r31f4837 16 16 17 17 SRC_TUPLES = \ 18 Tuples/Explode.c c\19 Tuples/Explode.h \20 Tuples/TupleAssignment.c c\18 Tuples/Explode.cpp \ 19 Tuples/Explode.hpp \ 20 Tuples/TupleAssignment.cpp \ 21 21 Tuples/TupleExpansion.cpp \ 22 Tuples/Tuples.c c\23 Tuples/Tuples.h 22 Tuples/Tuples.cpp \ 23 Tuples/Tuples.hpp 24 24 25 25 SRC += $(SRC_TUPLES) -
src/Validate/Autogen.cpp
racb33f15 r31f4837 16 16 #include "Autogen.hpp" 17 17 18 #include <algorithm> // for count_if19 #include <cassert> // for strict_dynamic_cast, assert, assertf20 #include <iterator> // for back_insert_iterator, back_inserter21 #include <list> // for list, _List_iterator, list<>::iter...22 #include <set> // for set, _Rb_tree_const_iterator23 #include <utility> // for pair24 #include <vector> // for vector18 #include <algorithm> // for count_if 19 #include <cassert> // for strict_dynamic_cast, assert, a... 20 #include <iterator> // for back_insert_iterator, back_ins... 21 #include <list> // for list, _List_iterator, list<>::... 22 #include <set> // for set, _Rb_tree_const_iterator 23 #include <utility> // for pair 24 #include <vector> // for vector 25 25 26 26 #include "AST/Attribute.hpp" … … 34 34 #include "AST/Stmt.hpp" 35 35 #include "AST/SymbolTable.hpp" 36 #include "CodeGen/OperatorTable.h "// for isCtorDtor, isCtorDtorAssign37 #include "Common/ScopedMap.h " // for ScopedMap<>::const_iterator, Scope...38 #include "Common/ utility.h"// for cloneAll, operator+39 #include "GenPoly/ScopedSet.h "// for ScopedSet, ScopedSet<>::iterator40 #include "InitTweak/GenInit.h "// for fixReturnStatements41 #include "InitTweak/InitTweak.h "// for isAssignment, isCopyConstructor36 #include "CodeGen/OperatorTable.hpp" // for isCtorDtor, isCtorDtorAssign 37 #include "Common/ScopedMap.hpp" // for ScopedMap<>::const_iterator, S... 38 #include "Common/Utility.hpp" // for cloneAll, operator+ 39 #include "GenPoly/ScopedSet.hpp" // for ScopedSet, ScopedSet<>::iterator 40 #include "InitTweak/GenInit.hpp" // for fixReturnStatements 41 #include "InitTweak/InitTweak.hpp" // for isAssignment, isCopyConstructor 42 42 #include "SymTab/GenImplicitCall.hpp" // for genImplicitCall 43 #include "SymTab/Mangler.h "// for Mangler43 #include "SymTab/Mangler.hpp" // for Mangler 44 44 #include "CompilationState.hpp" 45 45 -
src/Validate/CompoundLiteral.cpp
racb33f15 r31f4837 20 20 #include "AST/Pass.hpp" 21 21 #include "AST/TranslationUnit.hpp" 22 #include "Common/UniqueName.h "22 #include "Common/UniqueName.hpp" 23 23 24 24 namespace Validate { -
src/Validate/EliminateTypedef.cpp
racb33f15 r31f4837 21 21 #include "AST/Pass.hpp" 22 22 #include "AST/Stmt.hpp" 23 #include "Common/ utility.h"23 #include "Common/Utility.hpp" 24 24 25 25 namespace Validate { -
src/Validate/EnumAndPointerDecay.cpp
racb33f15 r31f4837 20 20 #include "AST/Pass.hpp" 21 21 #include "AST/Type.hpp" 22 #include "SymTab/FixFunction.h "22 #include "SymTab/FixFunction.hpp" 23 23 #include "Validate/NoIdSymbolTable.hpp" 24 24 -
src/Validate/FindSpecialDecls.cpp
racb33f15 r31f4837 14 14 // 15 15 16 #include "Validate/FindSpecialDecls.h "16 #include "Validate/FindSpecialDecls.hpp" 17 17 18 18 #include "AST/Decl.hpp" -
src/Validate/FindSpecialDecls.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // FindSpecialDeclarations.h -- Find special declarations used in the compiler.7 // FindSpecialDeclarations.hpp -- Find special declarations used in the compiler. 8 8 // 9 9 // Author : Rob Schluntz -
src/Validate/FixQualifiedTypes.cpp
racb33f15 r31f4837 21 21 #include "AST/TranslationUnit.hpp" 22 22 #include "Common/ToString.hpp" // for toString 23 #include "SymTab/Mangler.h "// for Mangler23 #include "SymTab/Mangler.hpp" // for Mangler 24 24 #include "Validate/NoIdSymbolTable.hpp" 25 25 -
src/Validate/FixReturnTypes.cpp
racb33f15 r31f4837 20 20 #include "AST/Type.hpp" 21 21 #include "CodeGen/CodeGenerator.hpp" 22 #include "ResolvExpr/Unify.h "22 #include "ResolvExpr/Unify.hpp" 23 23 24 24 namespace Validate { -
src/Validate/ForallPointerDecay.cpp
racb33f15 r31f4837 20 20 #include "AST/DeclReplacer.hpp" 21 21 #include "AST/Pass.hpp" 22 #include "CodeGen/OperatorTable.h "23 #include "Common/CodeLocation.h "22 #include "CodeGen/OperatorTable.hpp" 23 #include "Common/CodeLocation.hpp" 24 24 #include "Common/ToString.hpp" 25 #include "Common/ utility.h"26 #include "SymTab/FixFunction.h "25 #include "Common/Utility.hpp" 26 #include "SymTab/FixFunction.hpp" 27 27 28 28 namespace Validate { -
src/Validate/ImplementEnumFunc.cpp
racb33f15 r31f4837 2 2 #include "AST/Pass.hpp" 3 3 #include "AST/TranslationUnit.hpp" 4 #include "CodeGen/OperatorTable.h " // for isCtorDtor, isCtorDtorAssign5 #include "InitTweak/InitTweak.h " // for isAssignment, isCopyConstructor4 #include "CodeGen/OperatorTable.hpp" // for isCtorDtor, isCtorDtorAssign 5 #include "InitTweak/InitTweak.hpp" // for isAssignment, isCopyConstructor 6 6 namespace Validate { 7 7 -
src/Validate/ReplaceTypedef.cpp
racb33f15 r31f4837 18 18 #include "AST/Copy.hpp" 19 19 #include "AST/Pass.hpp" 20 #include "Common/ScopedMap.h "21 #include "Common/UniqueName.h "22 #include "ResolvExpr/Unify.h "20 #include "Common/ScopedMap.hpp" 21 #include "Common/UniqueName.hpp" 22 #include "ResolvExpr/Unify.hpp" 23 23 24 24 namespace Validate { -
src/Validate/VerifyCtorDtorAssign.cpp
racb33f15 r31f4837 17 17 18 18 #include "AST/Pass.hpp" 19 #include "CodeGen/OperatorTable.h "19 #include "CodeGen/OperatorTable.hpp" 20 20 21 21 namespace Validate { -
src/Validate/module.mk
racb33f15 r31f4837 16 16 17 17 SRC_VALIDATE = \ 18 Validate/FindSpecialDecls.h 18 Validate/FindSpecialDecls.hpp 19 19 20 20 SRC += $(SRC_VALIDATE) \ … … 40 40 Validate/HoistTypeDecls.cpp \ 41 41 Validate/HoistTypeDecls.hpp \ 42 Validate/ImplementEnumFunc.cpp \ 43 Validate/ImplementEnumFunc.hpp \ 42 44 Validate/InitializerLength.cpp \ 43 45 Validate/InitializerLength.hpp \ … … 52 54 Validate/ReturnCheck.hpp \ 53 55 Validate/VerifyCtorDtorAssign.cpp \ 54 Validate/VerifyCtorDtorAssign.hpp \ 55 Validate/ImplementEnumFunc.cpp \ 56 Validate/ImplementEnumFunc.hpp 56 Validate/VerifyCtorDtorAssign.hpp 57 57 58 58 SRCDEMANGLE += $(SRC_VALIDATE) -
src/Virtual/ExpandCasts.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ExpandCasts.c c--7 // ExpandCasts.cpp -- 8 8 // 9 9 // Author : Andrew Beach … … 14 14 // 15 15 16 #include "ExpandCasts.h "17 18 #include <cassert> // for assert, assertf19 #include <iterator> // for back_inserter, inserter20 #include <string> // for string, allocator, operator==, ope...16 #include "ExpandCasts.hpp" 17 18 #include <cassert> // for assert, assertf 19 #include <iterator> // for back_inserter, inserter 20 #include <string> // for string, allocator, operator==, o... 21 21 22 22 #include "AST/Copy.hpp" … … 24 24 #include "AST/Expr.hpp" 25 25 #include "AST/Pass.hpp" 26 #include "Common/ScopedMap.h " // for ScopedMap27 #include "Common/SemanticError.h " // for SemanticError28 #include "SymTab/Mangler.h " // for mangleType26 #include "Common/ScopedMap.hpp" // for ScopedMap 27 #include "Common/SemanticError.hpp" // for SemanticError 28 #include "SymTab/Mangler.hpp" // for mangleType 29 29 30 30 namespace Virtual { -
src/Virtual/ExpandCasts.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // ExpandCasts.h --7 // ExpandCasts.hpp -- 8 8 // 9 9 // Author : Andrew Beach -
src/Virtual/Tables.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Tables.c c--7 // Tables.cpp -- 8 8 // 9 9 // Author : Andrew Beach -
src/Virtual/Tables.hpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Tables.h --7 // Tables.hpp -- 8 8 // 9 9 // Author : Andrew Beach -
src/Virtual/module.mk
racb33f15 r31f4837 16 16 17 17 SRC += \ 18 Virtual/ExpandCasts.c c\19 Virtual/ExpandCasts.h \20 Virtual/Tables.c c\21 Virtual/Tables.h \18 Virtual/ExpandCasts.cpp \ 19 Virtual/ExpandCasts.hpp \ 20 Virtual/Tables.cpp \ 21 Virtual/Tables.hpp \ 22 22 Virtual/VirtualDtor.cpp \ 23 23 Virtual/VirtualDtor.hpp -
src/include/cassert
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // assert.h--7 // cassert -- 8 8 // 9 9 // Author : Peter A. Buhr -
src/include/optional
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // optional .h--7 // optional -- 8 8 // 9 9 // Author : Michael L. Brooks -
src/main.cpp
racb33f15 r31f4837 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // main.c c--7 // main.cpp -- 8 8 // 9 9 // Author : Peter Buhr and Rob Schluntz … … 35 35 #include "CompilationState.hpp" 36 36 #include "../config.h" // for CFA_LIBDIR 37 #include "CodeGen/FixMain.h "// for FixMain38 #include "CodeGen/FixNames.h "// for fixNames39 #include "CodeGen/Generate.h "// for generate40 #include "CodeGen/LinkOnce.h "// for translateLinkOnce37 #include "CodeGen/FixMain.hpp" // for FixMain 38 #include "CodeGen/FixNames.hpp" // for fixNames 39 #include "CodeGen/Generate.hpp" // for generate 40 #include "CodeGen/LinkOnce.hpp" // for translateLinkOnce 41 41 #include "Common/CodeLocationTools.hpp" // for forceFillCodeLocations 42 42 #include "Common/DeclStats.hpp" // for printDeclStats 43 43 #include "Common/ResolvProtoDump.hpp" // for dumpAsResolverProto 44 #include "Common/Stats.h "// for Stats45 #include "Common/ utility.h"// for deleteAll, filter, printAll44 #include "Common/Stats.hpp" // for Stats 45 #include "Common/Utility.hpp" // for deleteAll, filter, printAll 46 46 #include "Concurrency/Actors.hpp" // for implementActors 47 47 #include "Concurrency/Corun.hpp" // for implementCorun 48 #include "Concurrency/Keywords.h "// for implementMutex, implement...49 #include "Concurrency/Waitfor.h "// for generateWaitfor48 #include "Concurrency/Keywords.hpp" // for implementMutex, implement... 49 #include "Concurrency/Waitfor.hpp" // for generateWaitfor 50 50 #include "Concurrency/Waituntil.hpp" // for generateWaitUntil 51 #include "ControlStruct/ExceptDecl.h "// for translateExcept52 #include "ControlStruct/ExceptTranslate.h "// for translateThrows, translat...51 #include "ControlStruct/ExceptDecl.hpp" // for translateExcept 52 #include "ControlStruct/ExceptTranslate.hpp"// for translateThrows, translat... 53 53 #include "ControlStruct/FixLabels.hpp" // for fixLabels 54 54 #include "ControlStruct/HoistControlDecls.hpp" // hoistControlDecls 55 #include "GenPoly/Box.h "// for box56 #include "GenPoly/InstantiateGeneric.h "// for instantiateGeneric57 #include "GenPoly/Lvalue.h "// for convertLvalue58 #include "GenPoly/Specialize.h "// for convertSpecializations59 #include "InitTweak/FixInit.h "// for fix60 #include "InitTweak/GenInit.h "// for genInit55 #include "GenPoly/Box.hpp" // for box 56 #include "GenPoly/InstantiateGeneric.hpp" // for instantiateGeneric 57 #include "GenPoly/Lvalue.hpp" // for convertLvalue 58 #include "GenPoly/Specialize.hpp" // for convertSpecializations 59 #include "InitTweak/FixInit.hpp" // for fix 60 #include "InitTweak/GenInit.hpp" // for genInit 61 61 #include "MakeLibCfa.hpp" // for makeLibCfa 62 62 #include "Parser/RunParser.hpp" // for buildList, dumpParseTree,... 63 63 #include "ResolvExpr/CandidatePrinter.hpp" // for printCandidates 64 64 #include "ResolvExpr/EraseWith.hpp" // for eraseWith 65 #include "ResolvExpr/Resolver.h "// for resolve66 #include "Tuples/Tuples.h "// for expandMemberTuples, expan...65 #include "ResolvExpr/Resolver.hpp" // for resolve 66 #include "Tuples/Tuples.hpp" // for expandMemberTuples, expan... 67 67 #include "Validate/Autogen.hpp" // for autogenerateRoutines 68 #include "Validate/ImplementEnumFunc.hpp" // for implementEnumFunc69 68 #include "Validate/CompoundLiteral.hpp" // for handleCompoundLiterals 70 69 #include "Validate/EliminateTypedef.hpp" // for eliminateTypedef 71 70 #include "Validate/EnumAndPointerDecay.hpp" // for decayEnumsAndPointers 72 #include "Validate/FindSpecialDecls.h "// for findGlobalDecls71 #include "Validate/FindSpecialDecls.hpp" // for findGlobalDecls 73 72 #include "Validate/FixQualifiedTypes.hpp" // for fixQualifiedTypes 74 73 #include "Validate/FixReturnTypes.hpp" // for fixReturnTypes … … 77 76 #include "Validate/HoistStruct.hpp" // for hoistStruct 78 77 #include "Validate/HoistTypeDecls.hpp" // for hoistTypeDecls 78 #include "Validate/ImplementEnumFunc.hpp" // for implementEnumFunc 79 79 #include "Validate/InitializerLength.hpp" // for setLengthFromInitializer 80 80 #include "Validate/LabelAddressFixer.hpp" // for fixLabelAddresses … … 83 83 #include "Validate/ReturnCheck.hpp" // for checkReturnStatements 84 84 #include "Validate/VerifyCtorDtorAssign.hpp" // for verifyCtorDtorAssign 85 #include "Virtual/ExpandCasts.h "// for expandCasts85 #include "Virtual/ExpandCasts.hpp" // for expandCasts 86 86 #include "Virtual/VirtualDtor.hpp" // for implementVirtDtors 87 87
Note:
See TracChangeset
for help on using the changeset viewer.