summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature/constexpr.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-05-10 18:22:45 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-05-10 18:22:45 +0000
commit32483a7641a431bf9e217948fb237642a26c7569 (patch)
tree8425125c34e5dc4ca1394bb4b599727e88fc90a7 /llvm/test/Feature/constexpr.ll
parentc3b0a5b0999f0783ab574094bcbe70d20e37d44c (diff)
downloadbcm5719-llvm-32483a7641a431bf9e217948fb237642a26c7569.tar.gz
bcm5719-llvm-32483a7641a431bf9e217948fb237642a26c7569.zip
Make "@name =" mandatory for globals in .ll files.
An oddity of the .ll syntax is that the "@var = " in @var = global i32 42 is optional. Writing just global i32 42 is equivalent to @0 = global i32 42 This means that there is a pretty big First set at the top level. The current implementation maintains it manually. I was trying to refactor it, but then started wondering why keep it a all. I personally find the above syntax confusing. It looks like something is missing. This patch removes the feature and simplifies the parser. llvm-svn: 269096
Diffstat (limited to 'llvm/test/Feature/constexpr.ll')
-rw-r--r--llvm/test/Feature/constexpr.ll10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/Feature/constexpr.ll b/llvm/test/Feature/constexpr.ll
index ee958ce1e38..14040cf03d5 100644
--- a/llvm/test/Feature/constexpr.ll
+++ b/llvm/test/Feature/constexpr.ll
@@ -10,8 +10,8 @@
;; Test constant cast expressions
;;-------------------------------
-global i64 u0x00001 ; hexadecimal unsigned integer constants
-global i64 s0x0012312 ; hexadecimal signed integer constants
+@0 = global i64 u0x00001 ; hexadecimal unsigned integer constants
+@1 = global i64 s0x0012312 ; hexadecimal signed integer constants
@t2 = global i32* @t1 ;; Forward reference without cast
@t3 = global i32* bitcast (i32* @t1 to i32*) ;; Forward reference with cast
@@ -22,9 +22,9 @@ global i64 s0x0012312 ; hexadecimal signed integer constants
@t7 = global float* inttoptr (i32 12345678 to float*) ;; Cast ordinary value to ptr
@t9 = global i32 bitcast (float bitcast (i32 8 to float) to i32) ;; Nested cast expression
-global i32* bitcast (float* @4 to i32*) ;; Forward numeric reference
-global float* @4 ;; Duplicate forward numeric reference
-global float 0.0
+@2 = global i32* bitcast (float* @4 to i32*) ;; Forward numeric reference
+@3 = global float* @4 ;; Duplicate forward numeric reference
+@4 = global float 0.0
;;---------------------------------------------------
OpenPOWER on IntegriCloud