summaryrefslogtreecommitdiff
path: root/utils/genprimopcode/Lexer.x
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-05-24 13:16:28 +0100
committerSimon Marlow <marlowsd@gmail.com>2011-05-24 13:20:52 +0100
commit46176dfa4f329af687c92e57740c800a6cada7b1 (patch)
treed3130f38f3754316aaf5eae82d8559fa04abcf97 /utils/genprimopcode/Lexer.x
parent4177efa79d0ebc45e1319caff1c000f5fb6cfdcf (diff)
downloadhaskell-46176dfa4f329af687c92e57740c800a6cada7b1.tar.gz
Assign more accurate code sizes to primops, so that the inlining
heuristics work better. Also removed the old unused "needs_wrapper" predicate for primops. This helps with #4978.
Diffstat (limited to 'utils/genprimopcode/Lexer.x')
-rw-r--r--utils/genprimopcode/Lexer.x1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/genprimopcode/Lexer.x b/utils/genprimopcode/Lexer.x
index df710d72b3..6f48c02f8f 100644
--- a/utils/genprimopcode/Lexer.x
+++ b/utils/genprimopcode/Lexer.x
@@ -54,6 +54,7 @@ words :-
<0> "thats_all_folks" { mkT TThatsAllFolks }
<0> [a-z][a-zA-Z0-9\#_]* { mkTv TLowerName }
<0> [A-Z][a-zA-Z0-9\#_]* { mkTv TUpperName }
+ <0> [0-9][0-9]* { mkTv (TInteger . read) }
<0> \" [^\"]* \" { mkTv (TString . tail . init) }
<in_braces> [^\{\}]+ { mkTv TNoBraces }
<in_braces> \n { mkTv TNoBraces }