Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
preprocessor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pablo Winant
preprocessor
Commits
2ea6a524
Verified
Commit
2ea6a524
authored
Jun 17, 2022
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Bytecode: remove unused expression types and associated constructors
parent
3613dbbe
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Bytecode.hh
+7
-80
7 additions, 80 deletions
src/Bytecode.hh
with
7 additions
and
80 deletions
src/Bytecode.hh
+
7
−
80
View file @
2ea6a524
...
...
@@ -97,15 +97,6 @@ enum class ExpressionType
FirstOtherEndoDerivative
,
FirstExoDerivative
,
FirstExodetDerivative
,
FirstParamDerivative
,
SecondEndoDerivative
,
SecondExoDerivative
,
SecondExodetDerivative
,
SecondParamDerivative
,
ThirdEndoDerivative
,
ThirdExoDerivative
,
ThirdExodetDerivative
,
ThirdParamDerivative
};
struct
Block_contain_type
...
...
@@ -910,75 +901,31 @@ class FNUMEXPR_ : public BytecodeInstruction
private:
ExpressionType
expression_type
;
unsigned
int
equation
;
uint16_t
dvariable1
,
dvariable2
,
dvariable3
;
int8_t
lag1
,
lag2
,
lag3
;
uint16_t
dvariable1
;
int8_t
lag1
;
public:
FNUMEXPR_
(
const
ExpressionType
expression_type_arg
,
unsigned
int
equation_arg
)
:
BytecodeInstruction
{
Tags
::
FNUMEXPR
},
expression_type
{
expression_type_arg
},
equation
{
equation_arg
},
dvariable1
{
0
},
dvariable2
{
0
},
dvariable3
{
0
},
lag1
{
0
}
,
lag2
{
0
},
lag3
{
0
}
dvariable1
{
0
},
lag1
{
0
}
{
};
FNUMEXPR_
(
const
ExpressionType
expression_type_arg
,
unsigned
int
equation_arg
,
unsigned
int
dvariable1_arg
)
:
BytecodeInstruction
{
Tags
::
FNUMEXPR
},
expression_type
{
expression_type_arg
},
equation
{
equation_arg
},
dvariable1
{
static_cast
<
uint16_t
>
(
dvariable1_arg
)},
dvariable2
{
0
},
dvariable3
{
0
},
lag1
{
0
},
lag2
{
0
},
lag3
{
0
}
{
};
FNUMEXPR_
(
const
ExpressionType
expression_type_arg
,
unsigned
int
equation_arg
,
unsigned
int
dvariable1_arg
,
int
lag1_arg
)
:
BytecodeInstruction
{
Tags
::
FNUMEXPR
},
expression_type
{
expression_type_arg
},
equation
{
equation_arg
},
dvariable1
{
static_cast
<
uint16_t
>
(
dvariable1_arg
)},
dvariable2
{
0
},
dvariable3
{
0
},
lag1
{
static_cast
<
int8_t
>
(
lag1_arg
)},
lag2
{
0
},
lag3
{
0
}
{
};
FNUMEXPR_
(
const
ExpressionType
expression_type_arg
,
unsigned
int
equation_arg
,
unsigned
int
dvariable1_arg
,
unsigned
int
dvariable2_arg
)
:
BytecodeInstruction
{
Tags
::
FNUMEXPR
},
expression_type
{
expression_type_arg
},
equation
{
equation_arg
},
dvariable1
{
static_cast
<
uint16_t
>
(
dvariable1_arg
)},
dvariable2
{
static_cast
<
uint16_t
>
(
dvariable2_arg
)},
dvariable3
{
0
},
lag1
{
0
},
lag2
{
0
},
lag3
{
0
}
{
};
FNUMEXPR_
(
const
ExpressionType
expression_type_arg
,
unsigned
int
equation_arg
,
unsigned
int
dvariable1_arg
,
int
lag1_arg
,
unsigned
int
dvariable2_arg
,
int
lag2_arg
)
:
BytecodeInstruction
{
Tags
::
FNUMEXPR
},
expression_type
{
expression_type_arg
},
equation
{
equation_arg
},
dvariable1
{
static_cast
<
uint16_t
>
(
dvariable1_arg
)},
dvariable2
{
static_cast
<
uint16_t
>
(
dvariable2_arg
)},
dvariable3
{
0
},
lag1
{
static_cast
<
int8_t
>
(
lag1_arg
)},
lag2
{
static_cast
<
int8_t
>
(
lag2_arg
)},
lag3
{
0
}
{
};
FNUMEXPR_
(
const
ExpressionType
expression_type_arg
,
unsigned
int
equation_arg
,
unsigned
int
dvariable1_arg
,
unsigned
int
dvariable2_arg
,
unsigned
int
dvariable3_arg
)
:
BytecodeInstruction
{
Tags
::
FNUMEXPR
},
expression_type
{
expression_type_arg
},
equation
{
equation_arg
},
dvariable1
{
static_cast
<
uint16_t
>
(
dvariable1_arg
)},
dvariable2
{
static_cast
<
uint16_t
>
(
dvariable2_arg
)},
dvariable3
{
static_cast
<
uint16_t
>
(
dvariable3_arg
)},
lag1
{
0
},
lag2
{
0
},
lag3
{
0
}
lag1
{
0
}
{
};
FNUMEXPR_
(
const
ExpressionType
expression_type_arg
,
unsigned
int
equation_arg
,
unsigned
int
dvariable1_arg
,
int
lag1_arg
,
unsigned
int
dvariable2_arg
,
int
lag2_arg
,
unsigned
int
dvariable3_arg
,
int
lag3_arg
)
:
FNUMEXPR_
(
const
ExpressionType
expression_type_arg
,
unsigned
int
equation_arg
,
unsigned
int
dvariable1_arg
,
int
lag1_arg
)
:
BytecodeInstruction
{
Tags
::
FNUMEXPR
},
expression_type
{
expression_type_arg
},
equation
{
equation_arg
},
dvariable1
{
static_cast
<
uint16_t
>
(
dvariable1_arg
)},
dvariable2
{
static_cast
<
uint16_t
>
(
dvariable2_arg
)},
dvariable3
{
static_cast
<
uint16_t
>
(
dvariable3_arg
)},
lag1
{
static_cast
<
int8_t
>
(
lag1_arg
)},
lag2
{
static_cast
<
int8_t
>
(
lag2_arg
)},
lag3
{
static_cast
<
int8_t
>
(
lag3_arg
)}
lag1
{
static_cast
<
int8_t
>
(
lag1_arg
)}
{
};
ExpressionType
...
...
@@ -1001,26 +948,6 @@ public:
{
return
lag1
;
};
unsigned
int
get_dvariable2
()
{
return
dvariable2
;
};
int
get_lag2
()
{
return
lag2
;
};
unsigned
int
get_dvariable3
()
{
return
dvariable3
;
};
int
get_lag3
()
{
return
lag3
;
};
void
write
(
ostream
&
CompileCode
,
unsigned
int
&
instruction_number
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment