Changeset 8135d4c for src/InitTweak
- Timestamp:
- Aug 22, 2017, 7:31:52 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 9aaac6e9
- Parents:
- fc56cdbf (diff), b3d413b (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/InitTweak
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/FixGlobalInit.cc
rfc56cdbf r8135d4c 15 15 16 16 #include "FixGlobalInit.h" 17 #include "InitTweak.h" 18 #include "SynTree/Declaration.h" 19 #include "SynTree/Type.h" 20 #include "SynTree/Expression.h" 21 #include "SynTree/Statement.h" 22 #include "SynTree/Initializer.h" 23 #include "SynTree/Visitor.h" 24 #include "SynTree/Attribute.h" 25 #include <algorithm> 17 18 #include <cassert> // for assert 19 #include <stddef.h> // for NULL 20 #include <algorithm> // for replace_if 21 22 #include "Common/SemanticError.h" // for SemanticError 23 #include "Common/UniqueName.h" // for UniqueName 24 #include "InitTweak.h" // for isIntrinsicSingleArgCallStmt 25 #include "Parser/LinkageSpec.h" // for C 26 #include "SynTree/Attribute.h" // for Attribute 27 #include "SynTree/Constant.h" // for Constant 28 #include "SynTree/Declaration.h" // for FunctionDecl, ObjectDecl, Declaration 29 #include "SynTree/Expression.h" // for ConstantExpr, Expression (ptr only) 30 #include "SynTree/Initializer.h" // for ConstructorInit, Initializer 31 #include "SynTree/Label.h" // for Label, noLabels 32 #include "SynTree/Statement.h" // for CompoundStmt, Statement (ptr only) 33 #include "SynTree/Type.h" // for Type, Type::StorageClasses, Functi... 34 #include "SynTree/Visitor.h" // for acceptAll, Visitor 26 35 27 36 namespace InitTweak { -
src/InitTweak/FixGlobalInit.h
rfc56cdbf r8135d4c 16 16 #pragma once 17 17 18 #include < string>19 #include < list>18 #include <list> // for list 19 #include <string> // for string 20 20 21 #include "SynTree/SynTree.h" 22 #include "SynTree/Declaration.h" 21 class Declaration; 23 22 24 23 namespace InitTweak { -
src/InitTweak/FixInit.cc
rfc56cdbf r8135d4c 13 13 // Update Count : 74 14 14 // 15 16 #include <stack>17 #include <list>18 #include <iterator>19 #include <algorithm>20 #include <unordered_map>21 #include <unordered_set>22 23 #include "InitTweak.h"24 #include "GenInit.h"25 15 #include "FixInit.h" 26 #include "FixGlobalInit.h" 27 #include "CodeGen/GenType.h" // for warning/error messages 16 17 #include <stddef.h> // for NULL 18 #include <algorithm> // for set_difference, copy_if 19 #include <cassert> // for assert, safe_dynamic_cast 20 #include <iostream> // for operator<<, ostream, basic_ost... 21 #include <iterator> // for insert_iterator, back_inserter 22 #include <list> // for _List_iterator, list, list<>::... 23 #include <map> // for _Rb_tree_iterator, _Rb_tree_co... 24 #include <memory> // for allocator_traits<>::value_type 25 #include <set> // for set, set<>::value_type 26 #include <unordered_map> // for unordered_map, unordered_map<>... 27 #include <unordered_set> // for unordered_set 28 #include <utility> // for pair 29 30 #include "CodeGen/GenType.h" // for genPrettyType 28 31 #include "CodeGen/OperatorTable.h" 29 #include "Common/PassVisitor.h" 30 #include "GenPoly/DeclMutator.h" 31 #include "GenPoly/PolyMutator.h" 32 #include "ResolvExpr/Resolver.h" 33 #include "ResolvExpr/typeops.h" 34 #include "SymTab/Autogen.h" 35 #include "SymTab/Indexer.h" 36 #include "SynTree/AddStmtVisitor.h" 37 #include "SynTree/Attribute.h" 38 #include "SynTree/Declaration.h" 39 #include "SynTree/Expression.h" 40 #include "SynTree/Initializer.h" 41 #include "SynTree/Mutator.h" 42 #include "SynTree/Statement.h" 43 #include "SynTree/Type.h" 44 #include "Tuples/Tuples.h" 32 #include "Common/PassVisitor.h" // for PassVisitor, WithStmtsToAdd 33 #include "Common/SemanticError.h" // for SemanticError 34 #include "Common/UniqueName.h" // for UniqueName 35 #include "Common/utility.h" // for CodeLocation, ValueGuard, toSt... 36 #include "FixGlobalInit.h" // for fixGlobalInit 37 #include "GenInit.h" // for genCtorDtor 38 #include "GenPoly/DeclMutator.h" // for DeclMutator 39 #include "GenPoly/GenPoly.h" // for getFunctionType 40 #include "GenPoly/PolyMutator.h" // for PolyMutator 41 #include "InitTweak.h" // for getFunctionName, getCallArg 42 #include "Parser/LinkageSpec.h" // for C, Spec, Cforall, isBuiltin 43 #include "ResolvExpr/Resolver.h" // for findVoidExpression 44 #include "ResolvExpr/typeops.h" // for typesCompatible 45 #include "SymTab/Autogen.h" // for genImplicitCall 46 #include "SymTab/Indexer.h" // for Indexer 47 #include "SymTab/Mangler.h" // for Mangler 48 #include "SynTree/AddStmtVisitor.h" // for AddStmtVisitor 49 #include "SynTree/Attribute.h" // for Attribute 50 #include "SynTree/Constant.h" // for Constant 51 #include "SynTree/Declaration.h" // for ObjectDecl, FunctionDecl, Decl... 52 #include "SynTree/Expression.h" // for UniqueExpr, VariableExpr, Unty... 53 #include "SynTree/Initializer.h" // for ConstructorInit, SingleInit 54 #include "SynTree/Label.h" // for Label, noLabels, operator< 55 #include "SynTree/Mutator.h" // for mutateAll, Mutator, maybeMutate 56 #include "SynTree/Statement.h" // for ExprStmt, CompoundStmt, Branch... 57 #include "SynTree/Type.h" // for Type, Type::StorageClasses 58 #include "SynTree/TypeSubstitution.h" // for TypeSubstitution, operator<< 59 #include "SynTree/Visitor.h" // for acceptAll, maybeAccept 60 #include "Tuples/Tuples.h" // for isTtype 45 61 46 62 bool ctordtorp = false; // print all debug -
src/InitTweak/FixInit.h
rfc56cdbf r8135d4c 16 16 #pragma once 17 17 18 #include < string>19 #include < list>18 #include <list> // for list 19 #include <string> // for string 20 20 21 #include "SynTree/SynTree.h" 22 #include "SynTree/Declaration.h" 23 #include "SynTree/Mutator.h" 21 class Declaration; 24 22 25 23 namespace InitTweak { -
src/InitTweak/GenInit.cc
rfc56cdbf r8135d4c 13 13 // Update Count : 183 14 14 // 15 16 #include <stack>17 #include <list>18 19 #include "InitTweak.h"20 15 #include "GenInit.h" 21 16 22 #include "Common/PassVisitor.h" 17 #include <stddef.h> // for NULL 18 #include <algorithm> // for any_of 19 #include <cassert> // for assert, safe_dynamic_cast, assertf 20 #include <iterator> // for back_inserter, inserter, back_inse... 21 #include <list> // for _List_iterator, list 22 23 23 #include "CodeGen/OperatorTable.h" 24 25 #include "GenPoly/DeclMutator.h" 26 #include "GenPoly/PolyMutator.h" 27 #include "GenPoly/ScopedSet.h" 28 29 #include "ResolvExpr/typeops.h" 30 31 #include "SynTree/Declaration.h" 32 #include "SynTree/Expression.h" 33 #include "SynTree/Initializer.h" 34 #include "SynTree/Mutator.h" 35 #include "SynTree/Statement.h" 36 #include "SynTree/Type.h" 37 38 #include "SymTab/Autogen.h" 39 #include "SymTab/Mangler.h" 24 #include "Common/PassVisitor.h" // for PassVisitor, WithGuards, WithShort... 25 #include "Common/SemanticError.h" // for SemanticError 26 #include "Common/UniqueName.h" // for UniqueName 27 #include "Common/utility.h" // for ValueGuard, maybeClone 28 #include "GenPoly/DeclMutator.h" // for DeclMutator 29 #include "GenPoly/GenPoly.h" // for getFunctionType, isPolyType 30 #include "GenPoly/ScopedSet.h" // for ScopedSet, ScopedSet<>::const_iter... 31 #include "InitTweak.h" // for isConstExpr, InitExpander, checkIn... 32 #include "Parser/LinkageSpec.h" // for isOverridable, C 33 #include "SymTab/Autogen.h" // for genImplicitCall, SizeType 34 #include "SymTab/Mangler.h" // for Mangler 35 #include "SynTree/Declaration.h" // for ObjectDecl, DeclarationWithType 36 #include "SynTree/Expression.h" // for VariableExpr, UntypedExpr, Address... 37 #include "SynTree/Initializer.h" // for ConstructorInit, SingleInit, Initi... 38 #include "SynTree/Label.h" // for Label 39 #include "SynTree/Mutator.h" // for mutateAll 40 #include "SynTree/Statement.h" // for CompoundStmt, ImplicitCtorDtorStmt 41 #include "SynTree/Type.h" // for Type, ArrayType, Type::Qualifiers 42 #include "SynTree/Visitor.h" // for acceptAll, maybeAccept 40 43 41 44 namespace InitTweak { -
src/InitTweak/GenInit.h
rfc56cdbf r8135d4c 16 16 #pragma once 17 17 18 #include < string>19 #include < list>18 #include <list> // for list 19 #include <string> // for string 20 20 21 #include "SynTree/SynTree.h" 22 #include "SynTree/Declaration.h" 23 #include "SynTree/Mutator.h" 21 #include "SynTree/SynTree.h" // for Visitor Nodes 24 22 25 23 namespace InitTweak { -
src/InitTweak/InitTweak.cc
rfc56cdbf r8135d4c 1 #include <algorithm> 1 #include <stddef.h> // for NULL 2 #include <algorithm> // for find, all_of 3 #include <cassert> // for assertf, assert, safe_dynamic_cast 4 #include <iostream> // for ostream, cerr, endl 5 #include <iterator> // for back_insert_iterator, back_inserter 6 #include <memory> // for __shared_ptr 7 8 #include "Common/SemanticError.h" // for SemanticError 9 #include "Common/UniqueName.h" // for UniqueName 10 #include "Common/utility.h" // for toString, deleteAll, maybeClone 11 #include "GenPoly/GenPoly.h" // for getFunctionType 2 12 #include "InitTweak.h" 3 #include "SynTree/Visitor.h" 4 #include "SynTree/Statement.h" 5 #include "SynTree/Initializer.h" 6 #include "SynTree/Expression.h" 7 #include "SynTree/Attribute.h" 8 #include "GenPoly/GenPoly.h" 9 #include "ResolvExpr/typeops.h" 13 #include "Parser/LinkageSpec.h" // for Spec, isBuiltin, Intrinsic 14 #include "ResolvExpr/typeops.h" // for typesCompatibleIgnoreQualifiers 15 #include "SymTab/Indexer.h" // for Indexer 16 #include "SynTree/Attribute.h" // for Attribute 17 #include "SynTree/Constant.h" // for Constant 18 #include "SynTree/Declaration.h" // for ObjectDecl, DeclarationWithType 19 #include "SynTree/Expression.h" // for Expression, UntypedExpr, Applicati... 20 #include "SynTree/Initializer.h" // for Initializer, ListInit, Designation 21 #include "SynTree/Label.h" // for Label, noLabels 22 #include "SynTree/Statement.h" // for CompoundStmt, ExprStmt, BranchStmt 23 #include "SynTree/Type.h" // for FunctionType, ArrayType, PointerType 24 #include "SynTree/Visitor.h" // for Visitor, maybeAccept 25 26 class UntypedValofExpr; 10 27 11 28 namespace InitTweak { -
src/InitTweak/InitTweak.h
rfc56cdbf r8135d4c 16 16 #pragma once 17 17 18 #include <string> 19 #include <list> 18 #include <list> // for list 19 #include <memory> // for shared_ptr 20 #include <string> // for string, allocator 20 21 21 #include "SynTree/SynTree.h" 22 #include "SynTree/Declaration.h" 23 #include "SynTree/Mutator.h" 22 #include "SynTree/SynTree.h" // for Visitor Nodes 24 23 25 24 // helper functions for initialization … … 99 98 100 99 class ExpanderImpl; 100 101 101 typedef std::list< Expression * > IndexList; 102 102 private:
Note: See TracChangeset
for help on using the changeset viewer.