mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
98e0298cb2
This patch fixes PR41523 https://bugs.llvm.org/show_bug.cgi?id=41523 Regions can now nest/overlap provided that they have different names. Anonymous regions cannot overlap. Region end markers must specify the region name. The only exception is for when there is only one user-defined region; in that particular case, the region end marker doesn't need to specify a name. Incorrect region end markers are no longer ignored. Instead, the tool reports an error and we exit with an error code. Added test cases to verify the new diagnostic error messages. Updated the llvm-mca docs to reflect this feature change. Differential Revision: https://reviews.llvm.org/D61676 llvm-svn: 360351
15 lines
416 B
ArmAsm
15 lines
416 B
ArmAsm
# RUN: not llvm-mca -mtriple=x86_64-unknown-unknown -mcpu=btver2 %s 2>&1 | FileCheck %s
|
|
|
|
# LLVM-MCA-BEGIN foo
|
|
|
|
# LLVM-MCA-BEGIN bar
|
|
|
|
# LLVM-MCA-END
|
|
|
|
# CHECK: llvm-mca-markers-6.s:7:2: error: found an invalid region end directive
|
|
# CHECK-NEXT: # LLVM-MCA-END
|
|
# CHECK-NEXT: ^
|
|
# CHECK-NEXT: llvm-mca-markers-6.s:7:2: note: unable to find an active anonymous region
|
|
# CHECK-NEXT: # LLVM-MCA-END
|
|
# CHECK-NEXT: ^
|