[GPGPU] Make test case independent of LLVM names

In release builds LLVM may not pass along LLVM names consistently. We make the
test cases independent of the LLVM-IR names to avoid spurious test case
failures.

llvm-svn: 311118
This commit is contained in:
Tobias Grosser 2017-08-17 20:09:02 +00:00
parent 96bcd6a37a
commit abc5416be1
1 changed files with 2 additions and 2 deletions

View File

@ -13,11 +13,11 @@
; SCOP: i32 MemRef_A[*];
; Check that we generate a constructor call for @A.toptr
; HOST-IR: @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* @.constructor, i8* bitcast (i32** @A.toptr to i8*) }]
; HOST-IR: @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 0, void ()* {{.*}}, i8* bitcast (i32** @A.toptr to i8*) }]
; Check that we generate a constructor
; 4 bytes * 100 = 400
; HOST-IR: define void @.constructor() {
; HOST-IR: define void {{.*}}constructor() {
; HOST-IR-NEXT: entry:
; HOST-IR-NEXT: %mem.raw = call i8* @polly_mallocManaged(i64 400)
; HOST-IR-NEXT: %mem.typed = bitcast i8* %mem.raw to i32*