mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
0dfc3d1e3e
Module flags are key-value pairs associated with the module. They include a 'behavior' value, indicating how module flags react when mergine two files. Normally, it's just the union of the two module flags. But if two module flags have the same key, then the resulting flags are dictated by the behaviors. Allowable behaviors are: Error Emits an error if two values disagree. Warning Emits a warning if two values disagree. Require Emits an error when the specified value is not present or doesn't have the specified value. It is an error for two (or more) llvm.module.flags with the same ID to have the Require behavior but different values. There may be multiple Require flags per ID. Override Uses the specified value if the two values disagree. It is an error for two (or more) llvm.module.flags with the same ID to have the Override behavior but different values. llvm-svn: 150300
7 lines
166 B
LLVM
7 lines
166 B
LLVM
; This file is used with module-flags-5-a.ll
|
|
; RUN: true
|
|
|
|
!0 = metadata !{ i32 4, metadata !"foo", i32 37 } ; Override the "foo" value.
|
|
|
|
!llvm.module.flags = !{ !0 }
|