Commit 44a11664 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

uploading work on built in math functions, use of subtyped llvm type converter...


uploading work on built in math functions, use of subtyped llvm type converter for lowering ops. fixed bug for memref return types from subroutines

Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent ebedcb2d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
#!/bin/bash
set - o errexit
java -jar antlr-4.9.1-complete.jar -Dlanguage=Cpp -visitor -o generated/ -package qasm3 qasm3.g4
java -jar antlr-4.9.2-complete.jar -Dlanguage=Cpp -visitor -o generated/ -package qasm3 qasm3.g4
+7 −1

File changed.

Preview size limit exceeded, changes collapsed.

+81 −75
Original line number Diff line number Diff line
@@ -86,29 +86,32 @@ T__84=85
T__85=86
T__86=87
T__87=88
LBRACKET=89
RBRACKET=90
LBRACE=91
RBRACE=92
LPAREN=93
RPAREN=94
COLON=95
SEMICOLON=96
DOT=97
COMMA=98
EQUALS=99
ARROW=100
MINUS=101
Constant=102
Whitespace=103
Newline=104
Integer=105
Identifier=106
RealNumber=107
TimingLiteral=108
StringLiteral=109
LineComment=110
BlockComment=111
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
'OPENQASM'=1
'include'=2
'qubit'=3
@@ -158,55 +161,58 @@ BlockComment=111
'sin'=47
'cos'=48
'tan'=49
'exp'=50
'ln'=51
'sqrt'=52
'rotl'=53
'rotr'=54
'popcount'=55
'lengthof'=56
'+='=57
'-='=58
'*='=59
'/='=60
'&='=61
'|='=62
'~='=63
'^='=64
'<<='=65
'>>='=66
'in'=67
'if'=68
'else'=69
'for'=70
'while'=71
'break'=72
'continue'=73
'end'=74
'kernel'=75
'def'=76
'return'=77
'#pragma'=78
'length'=79
'stretch'=80
'boxas'=81
'boxto'=82
'stretchinf'=83
'delay'=84
'rotary'=85
'defcalgrammar'=86
'defcal'=87
'"openpulse"'=88
'['=89
']'=90
'{'=91
'}'=92
'('=93
')'=94
':'=95
';'=96
'.'=97
','=98
'='=99
'->'=100
'-'=101
'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
+1 −1
Original line number Diff line number Diff line

// Generated from qasm3.g4 by ANTLR 4.9.1
// Generated from qasm3.g4 by ANTLR 4.9.2


#include "qasm3BaseListener.h"
+1 −1
Original line number Diff line number Diff line

// Generated from qasm3.g4 by ANTLR 4.9.1
// Generated from qasm3.g4 by ANTLR 4.9.2

#pragma once

Loading