Skip to content

Commit

Permalink
Add package BackendInline (the backend parts of Inline are moved there)
Browse files Browse the repository at this point in the history
- Marked more packages as using Interface="backend". Now only BackendInterface.mo has Interface="backendInterface"


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22843 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Oct 21, 2014
1 parent dac2735 commit e532181
Show file tree
Hide file tree
Showing 13 changed files with 732 additions and 661 deletions.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendDAE.mo
Expand Up @@ -691,5 +691,5 @@ uniontype DifferentiationType "Define the behaviour of differentiation method fo
end GENERIC_GRADIENT;
end DifferentiationType;

annotation(__OpenModelica_Interface="backendInterface"); // TODO: Make backend once Inline.mo is split in different parts
annotation(__OpenModelica_Interface="backend");
end BackendDAE;
5 changes: 3 additions & 2 deletions Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -59,6 +59,7 @@ protected import BackendDAEOptimize;
protected import BackendDAETransform;
protected import BackendDump;
protected import BackendEquation;
protected import BackendInline;
protected import BackendVariable;
protected import BackendVarTransform;
protected import BinaryTree;
Expand Down Expand Up @@ -8256,7 +8257,7 @@ algorithm
(systs,shared,args,causalized) := mapCausalizeDAE(systs,shared,inMatchingOptions,matchingAlgorithm,stateDeselection,{},{},false);
SimCodeUtil.execStat("matching");
// do late inline
outDAE := Debug.bcallret1(dolateinline,Inline.lateInlineFunction,BackendDAE.DAE(systs,shared),BackendDAE.DAE(systs,shared));
outDAE := Debug.bcallret1(dolateinline,BackendInline.lateInlineFunction,BackendDAE.DAE(systs,shared),BackendDAE.DAE(systs,shared));
// do state selection
BackendDAE.DAE(systs,shared) := stateDeselectionDAE(causalized,outDAE,args,stateDeselection);
// sort assigned equations to blt form
Expand Down Expand Up @@ -8833,7 +8834,7 @@ protected
list<String> strpostOptModules;
algorithm
allpostOptModules := {(BackendDAEOptimize.encapsulateWhenConditions, "encapsulateWhenConditions", true),
(Inline.lateInlineFunction,"lateInlineFunction",false),
(BackendInline.lateInlineFunction,"lateInlineFunction",false),
(RemoveSimpleEquations.causal,"removeSimpleEquations",false),
(RemoveSimpleEquations.fastAcausal,"removeSimpleEquationsFast",false),
(BackendDAEOptimize.removeEqualFunctionCalls,"removeEqualFunctionCalls",false),
Expand Down

0 comments on commit e532181

Please sign in to comment.