summaryrefslogtreecommitdiff
path: root/js/IntegerOp
diff options
context:
space:
mode:
authorSunil Shetye2018-06-26 12:08:19 +0530
committerSunil Shetye2018-06-26 12:08:19 +0530
commitafed64f1a0eab0b2d742088186d7bc340a2c895b (patch)
tree7270fd2e6c53e6df90c71e2fcbccd8149c3553a5 /js/IntegerOp
parent7465daea85285ba7f291b6bf6ddc45caa9e7ad65 (diff)
downloadsci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.tar.gz
sci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.tar.bz2
sci2js-afed64f1a0eab0b2d742088186d7bc340a2c895b.zip
return block type in define and set
Diffstat (limited to 'js/IntegerOp')
-rw-r--r--js/IntegerOp/BITCLEAR.js2
-rw-r--r--js/IntegerOp/BITSET.js2
-rw-r--r--js/IntegerOp/CONVERT.js2
-rw-r--r--js/IntegerOp/DFLIPFLOP.js2
-rw-r--r--js/IntegerOp/DLATCH.js2
-rw-r--r--js/IntegerOp/EXTRACTBITS.js2
-rw-r--r--js/IntegerOp/INTMUL.js2
-rw-r--r--js/IntegerOp/JKFLIPFLOP.js2
-rw-r--r--js/IntegerOp/LOGIC.js2
-rw-r--r--js/IntegerOp/SHIFT.js2
-rw-r--r--js/IntegerOp/SRFLIPFLOP.js2
11 files changed, 22 insertions, 0 deletions
diff --git a/js/IntegerOp/BITCLEAR.js b/js/IntegerOp/BITCLEAR.js
index 69a6c8e9..4cb78029 100644
--- a/js/IntegerOp/BITCLEAR.js
+++ b/js/IntegerOp/BITCLEAR.js
@@ -15,6 +15,7 @@ function BITCLEAR() {
exprs = [[sci2exp(3)],[sci2exp(0)]];
gr_i = [];
this.x = standard_define([4,2],model,exprs,gr_i);
+ return new BasicBlock(this.x);
}
BITCLEAR.prototype.details = function BITCLEAR() {
return this.x;
@@ -83,5 +84,6 @@ function BITCLEAR() {
break;
}
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/IntegerOp/BITSET.js b/js/IntegerOp/BITSET.js
index b214103d..21e6d076 100644
--- a/js/IntegerOp/BITSET.js
+++ b/js/IntegerOp/BITSET.js
@@ -15,6 +15,7 @@ function BITSET() {
exprs = [[sci2exp(3)],[sci2exp(0)]];
gr_i = [];
this.x = standard_define([4,2],model,exprs,gr_i);
+ return new BasicBlock(this.x);
}
BITSET.prototype.details = function BITSET() {
return this.x;
@@ -81,5 +82,6 @@ function BITSET() {
break;
}
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/IntegerOp/CONVERT.js b/js/IntegerOp/CONVERT.js
index 7686794e..cf2d120b 100644
--- a/js/IntegerOp/CONVERT.js
+++ b/js/IntegerOp/CONVERT.js
@@ -17,6 +17,7 @@ function CONVERT() {
exprs = [[sci2exp(1)],[sci2exp(3)],[sci2exp(0)]];
gr_i = [];
this.x = standard_define([3,2],model,exprs,gr_i);
+ return new BasicBlock(this.x);
}
CONVERT.prototype.details = function CONVERT() {
return this.x;
@@ -367,5 +368,6 @@ function CONVERT() {
break;
}
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/IntegerOp/DFLIPFLOP.js b/js/IntegerOp/DFLIPFLOP.js
index 5a703f00..944bddc4 100644
--- a/js/IntegerOp/DFLIPFLOP.js
+++ b/js/IntegerOp/DFLIPFLOP.js
@@ -90,6 +90,7 @@ function DFLIPFLOP() {
model.rpar = scs_m;
gr_i = [];
this.x = standard_define([2,3],model,[],gr_i);
+ return new BasicBlock(this.x);
}
DFLIPFLOP.prototype.details = function DFLIPFLOP() {
return this.x;
@@ -98,5 +99,6 @@ function DFLIPFLOP() {
}
DFLIPFLOP.prototype.set = function DFLIPFLOP() {
this.x = arg1;
+ return new BasicBlock(this.x);
}
}
diff --git a/js/IntegerOp/DLATCH.js b/js/IntegerOp/DLATCH.js
index 174cfa92..130e2534 100644
--- a/js/IntegerOp/DLATCH.js
+++ b/js/IntegerOp/DLATCH.js
@@ -35,6 +35,7 @@ function DLATCH() {
model.rpar = scs_m;
gr_i = [];
this.x = standard_define([2,3],model,[],gr_i);
+ return new BasicBlock(this.x);
}
DLATCH.prototype.details = function DLATCH() {
return this.x;
@@ -43,5 +44,6 @@ function DLATCH() {
}
DLATCH.prototype.set = function DLATCH() {
this.x = arg1;
+ return new BasicBlock(this.x);
}
}
diff --git a/js/IntegerOp/EXTRACTBITS.js b/js/IntegerOp/EXTRACTBITS.js
index c8cc060a..8f376b2d 100644
--- a/js/IntegerOp/EXTRACTBITS.js
+++ b/js/IntegerOp/EXTRACTBITS.js
@@ -16,6 +16,7 @@ function EXTRACTBITS() {
exprs = [[sci2exp(3)],[sci2exp(1)],[sci2exp(0)],[sci2exp(0)]];
gr_i = [];
this.x = standard_define([4,2],model,exprs,gr_i);
+ return new BasicBlock(this.x);
}
EXTRACTBITS.prototype.details = function EXTRACTBITS() {
return this.x;
@@ -226,5 +227,6 @@ function EXTRACTBITS() {
break;
}
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/IntegerOp/INTMUL.js b/js/IntegerOp/INTMUL.js
index 95065dac..c67e5c5e 100644
--- a/js/IntegerOp/INTMUL.js
+++ b/js/IntegerOp/INTMUL.js
@@ -17,6 +17,7 @@ function INTMUL() {
exprs = [[sci2exp(3)],[sci2exp(0)]];
gr_i = [];
this.x = standard_define([2,2],model,exprs,gr_i);
+ return new BasicBlock(this.x);
}
INTMUL.prototype.details = function INTMUL() {
return this.x;
@@ -103,5 +104,6 @@ function INTMUL() {
break;
}
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/IntegerOp/JKFLIPFLOP.js b/js/IntegerOp/JKFLIPFLOP.js
index 3ee2ab1f..17aa3c0d 100644
--- a/js/IntegerOp/JKFLIPFLOP.js
+++ b/js/IntegerOp/JKFLIPFLOP.js
@@ -46,6 +46,7 @@ function JKFLIPFLOP() {
model.rpar = scs_m;
gr_i = [];
this.x = standard_define([2,3],model,[],gr_i);
+ return new BasicBlock(this.x);
}
JKFLIPFLOP.prototype.details = function JKFLIPFLOP() {
return this.x;
@@ -91,5 +92,6 @@ function JKFLIPFLOP() {
this.x = arg1;
y = needcompile;
typ = newpar;
+ return new BasicBlock(this.x);
}
}
diff --git a/js/IntegerOp/LOGIC.js b/js/IntegerOp/LOGIC.js
index d4ebdf7c..3a4dceef 100644
--- a/js/IntegerOp/LOGIC.js
+++ b/js/IntegerOp/LOGIC.js
@@ -18,6 +18,7 @@ function LOGIC() {
exprs = [[sci2exp(mat)],[sci2exp(0)]];
gr_i = [];
this.x = standard_define([2,2],model,exprs,gr_i);
+ return new BasicBlock(this.x);
}
LOGIC.prototype.details = function LOGIC() {
return this.x;
@@ -63,5 +64,6 @@ function LOGIC() {
break;
}
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/IntegerOp/SHIFT.js b/js/IntegerOp/SHIFT.js
index 55af03ed..d1360f21 100644
--- a/js/IntegerOp/SHIFT.js
+++ b/js/IntegerOp/SHIFT.js
@@ -18,6 +18,7 @@ function SHIFT() {
exprs = [[sci2exp(3)],[sci2exp(0)],[sci2exp(0)]];
gr_i = [];
this.x = standard_define([3,2],model,exprs,gr_i);
+ return new BasicBlock(this.x);
}
SHIFT.prototype.details = function SHIFT() {
return this.x;
@@ -118,5 +119,6 @@ function SHIFT() {
break;
}
}
+ return new BasicBlock(this.x);
}
}
diff --git a/js/IntegerOp/SRFLIPFLOP.js b/js/IntegerOp/SRFLIPFLOP.js
index d5db4b00..eb57ffe8 100644
--- a/js/IntegerOp/SRFLIPFLOP.js
+++ b/js/IntegerOp/SRFLIPFLOP.js
@@ -30,6 +30,7 @@ function SRFLIPFLOP() {
model.rpar = scs_m;
gr_i = [];
this.x = standard_define([2,3],model,[],gr_i);
+ return new BasicBlock(this.x);
}
SRFLIPFLOP.prototype.details = function SRFLIPFLOP() {
return this.x;
@@ -75,5 +76,6 @@ function SRFLIPFLOP() {
this.x = arg1;
y = needcompile;
typ = newpar;
+ return new BasicBlock(this.x);
}
}