Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Lopez
qir
Commits
8537e722
Commit
8537e722
authored
9 years ago
by
Julien Lopez
Browse files
Options
Downloads
Patches
Plain Diff
Remove translation function of TruffleNodes
parent
829e998c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/qir/ast/QIRTruffleNode.java
+1
-9
1 addition, 9 deletions
src/qir/ast/QIRTruffleNode.java
src/qir/driver/QIRSQLVisitor.java
+1
-1
1 addition, 1 deletion
src/qir/driver/QIRSQLVisitor.java
with
2 additions
and
10 deletions
src/qir/ast/QIRTruffleNode.java
+
1
−
9
View file @
8537e722
package
qir.ast
;
import
java.util.function.Function
;
import
com.oracle.truffle.api.source.SourceSection
;
import
qir.util.IQIRVisitor
;
...
...
@@ -13,13 +11,11 @@ import qir.util.IQIRVisitor;
public
final
class
QIRTruffleNode
extends
QIRNode
{
private
final
String
name
;
private
final
String
code
;
private
final
Function
<
QIRTruffleNode
,
String
>
translation
;
public
QIRTruffleNode
(
final
SourceSection
source
,
final
String
name
,
final
String
code
,
final
Function
<
QIRTruffleNode
,
String
>
translation
)
{
public
QIRTruffleNode
(
final
SourceSection
source
,
final
String
name
,
final
String
code
)
{
super
(
source
);
this
.
name
=
name
;
this
.
code
=
code
;
this
.
translation
=
translation
;
}
public
final
String
getName
()
{
...
...
@@ -30,10 +26,6 @@ public final class QIRTruffleNode extends QIRNode {
return
code
;
}
public
final
Function
<
QIRTruffleNode
,
String
>
getTranslation
()
{
return
translation
;
}
@Override
public
final
String
toString
()
{
return
"TruffleNode("
+
name
+
")"
;
...
...
This diff is collapsed.
Click to expand it.
src/qir/driver/QIRSQLVisitor.java
+
1
−
1
View file @
8537e722
...
...
@@ -234,6 +234,6 @@ public final class QIRSQLVisitor implements IQIRVisitor<String> {
@Override
public
final
String
visit
(
final
QIRTruffleNode
qirTruffleNode
)
{
return
"truffle.executetruffle('"
+
qirTruffleNode
.
get
Translation
().
apply
(
qirTruffleN
ode
)
+
"')"
;
return
"truffle.executetruffle('"
+
qirTruffleNode
.
get
C
ode
(
)
+
"')"
;
}
}
\ No newline at end of file
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