projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Unify clang/llvm attributes for asan/tsan/msan (LLVM part)
[oota-llvm.git]
/
test
/
TableGen
/
eq.td
1
// RUN: llvm-tblgen %s | FileCheck %s
2
// CHECK: Value = 0
3
// CHECK: Value = 1
4
5
class Base<int V> {
6
int Value = V;
7
}
8
9
class Derived<string Truth> :
10
Base<!if(!eq(Truth, "true"), 1, 0)>;
11
12
def TRUE : Derived<"true">;
13
def FALSE : Derived<"false">;