Commit fa62d45c authored by Nguyen, Thien Minh's avatar Nguyen, Thien Minh
Browse files

Merge branch 'master' into tnguyen/mlir-alias



Signed-off-by: default avatarThien Nguyen <nguyentm@ornl.gov>
parents 8768407c 0bed5984
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,4 +43,4 @@ endif()

install(TARGETS ${LIBRARY_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)

#add_subdirectory(tests)
 No newline at end of file
add_subdirectory(tests)
 No newline at end of file
+4 −1

File changed.

Preview size limit exceeded, changes collapsed.

+127 −125
Original line number Diff line number Diff line
@@ -89,130 +89,132 @@ T__87=88
T__88=89
T__89=90
T__90=91
LBRACKET=92
RBRACKET=93
LBRACE=94
RBRACE=95
LPAREN=96
RPAREN=97
COLON=98
SEMICOLON=99
DOT=100
COMMA=101
EQUALS=102
ARROW=103
MINUS=104
Constant=105
Whitespace=106
Newline=107
Integer=108
Identifier=109
RealNumber=110
TimingLiteral=111
StringLiteral=112
LineComment=113
BlockComment=114
T__91=92
LBRACKET=93
RBRACKET=94
LBRACE=95
RBRACE=96
LPAREN=97
RPAREN=98
COLON=99
SEMICOLON=100
DOT=101
COMMA=102
EQUALS=103
ARROW=104
MINUS=105
Constant=106
Whitespace=107
Newline=108
Integer=109
Identifier=110
RealNumber=111
TimingLiteral=112
StringLiteral=113
LineComment=114
BlockComment=115
'OPENQASM'=1
'include'=2
'qubit'=3
'qreg'=4
'bit'=5
'creg'=6
'int'=7
'uint'=8
'float'=9
'angle'=10
'fixed'=11
'bool'=12
'const'=13
'let'=14
'||'=15
'gate'=16
'CX'=17
'U'=18
'gphase'=19
'measure'=20
'barrier'=21
'inv'=22
'pow'=23
'ctrl'=24
'@'=25
'reset'=26
'~'=27
'!'=28
'>'=29
'<'=30
'>='=31
'<='=32
'=='=33
'!='=34
'&&'=35
'|'=36
'^'=37
'&'=38
'<<'=39
'>>'=40
'+'=41
'*'=42
'/'=43
'%'=44
'++'=45
'--'=46
'sin'=47
'cos'=48
'tan'=49
'arctan'=50
'arccos'=51
'arcsin'=52
'exp'=53
'ln'=54
'sqrt'=55
'rotl'=56
'rotr'=57
'popcount'=58
'lengthof'=59
'+='=60
'-='=61
'*='=62
'/='=63
'&='=64
'|='=65
'~='=66
'^='=67
'<<='=68
'>>='=69
'in'=70
'if'=71
'else'=72
'for'=73
'while'=74
'break'=75
'continue'=76
'end'=77
'kernel'=78
'def'=79
'return'=80
'#pragma'=81
'length'=82
'stretch'=83
'boxas'=84
'boxto'=85
'stretchinf'=86
'delay'=87
'rotary'=88
'defcalgrammar'=89
'defcal'=90
'"openpulse"'=91
'['=92
']'=93
'{'=94
'}'=95
'('=96
')'=97
':'=98
';'=99
'.'=100
','=101
'='=102
'->'=103
'-'=104
'QCOR_EXPECT_TRUE'=3
'qubit'=4
'qreg'=5
'bit'=6
'creg'=7
'int'=8
'uint'=9
'float'=10
'angle'=11
'fixed'=12
'bool'=13
'const'=14
'let'=15
'||'=16
'gate'=17
'CX'=18
'U'=19
'gphase'=20
'measure'=21
'barrier'=22
'inv'=23
'pow'=24
'ctrl'=25
'@'=26
'reset'=27
'~'=28
'!'=29
'>'=30
'<'=31
'>='=32
'<='=33
'=='=34
'!='=35
'&&'=36
'|'=37
'^'=38
'&'=39
'<<'=40
'>>'=41
'+'=42
'*'=43
'/'=44
'%'=45
'++'=46
'--'=47
'sin'=48
'cos'=49
'tan'=50
'arctan'=51
'arccos'=52
'arcsin'=53
'exp'=54
'ln'=55
'sqrt'=56
'rotl'=57
'rotr'=58
'popcount'=59
'lengthof'=60
'+='=61
'-='=62
'*='=63
'/='=64
'&='=65
'|='=66
'~='=67
'^='=68
'<<='=69
'>>='=70
'in'=71
'if'=72
'else'=73
'for'=74
'while'=75
'break'=76
'continue'=77
'end'=78
'kernel'=79
'def'=80
'return'=81
'#pragma'=82
'length'=83
'stretch'=84
'boxas'=85
'boxto'=86
'stretchinf'=87
'delay'=88
'rotary'=89
'defcalgrammar'=90
'defcal'=91
'"openpulse"'=92
'['=93
']'=94
'{'=95
'}'=96
'('=97
')'=98
':'=99
';'=100
'.'=101
','=102
'='=103
'->'=104
'-'=105
+3 −0
Original line number Diff line number Diff line
@@ -36,6 +36,9 @@ public:
  virtual void enterStatement(qasm3Parser::StatementContext * /*ctx*/) override { }
  virtual void exitStatement(qasm3Parser::StatementContext * /*ctx*/) override { }

  virtual void enterQcor_test_statement(qasm3Parser::Qcor_test_statementContext * /*ctx*/) override { }
  virtual void exitQcor_test_statement(qasm3Parser::Qcor_test_statementContext * /*ctx*/) override { }

  virtual void enterQuantumDeclarationStatement(qasm3Parser::QuantumDeclarationStatementContext * /*ctx*/) override { }
  virtual void exitQuantumDeclarationStatement(qasm3Parser::QuantumDeclarationStatementContext * /*ctx*/) override { }

+4 −0
Original line number Diff line number Diff line
@@ -41,6 +41,10 @@ public:
    return visitChildren(ctx);
  }

  virtual antlrcpp::Any visitQcor_test_statement(qasm3Parser::Qcor_test_statementContext *ctx) override {
    return visitChildren(ctx);
  }

  virtual antlrcpp::Any visitQuantumDeclarationStatement(qasm3Parser::QuantumDeclarationStatementContext *ctx) override {
    return visitChildren(ctx);
  }
Loading