diff options
author | David Greene <greened@obbligato.org> | 2011-01-07 17:05:37 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2011-01-07 17:05:37 +0000 |
commit | 1434f66b2e132a707e2c8ccb3350ea13fb5aa051 (patch) | |
tree | 4802d84c0730654fc43566fdb31ce9ac1fbe528c /test/TableGen/Slice.td | |
parent | 50dd09bd8592822214ff5fd66cffc3421b92d079 (diff) | |
download | external_llvm-1434f66b2e132a707e2c8ccb3350ea13fb5aa051.zip external_llvm-1434f66b2e132a707e2c8ccb3350ea13fb5aa051.tar.gz external_llvm-1434f66b2e132a707e2c8ccb3350ea13fb5aa051.tar.bz2 |
Rename lisp-like functions as suggested by Gabor Greif as loooong time
ago. This is both easier to learn and easier to read.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/TableGen/Slice.td')
-rw-r--r-- | test/TableGen/Slice.td | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/TableGen/Slice.td b/test/TableGen/Slice.td index 22bf7fb..13d9da2 100644 --- a/test/TableGen/Slice.td +++ b/test/TableGen/Slice.td @@ -66,19 +66,19 @@ def not : SDNode; multiclass scalar<bits<8> opcode, string asmstr = "", list<list<dag>> patterns = []> { def SSrr : Inst<opcode, (outs FR32:$dst), (ins FR32:$src), !strconcat(asmstr, "\t$dst, $src"), - !if(!null(patterns),[]<dag>,patterns[0])>; + !if(!empty(patterns),[]<dag>,patterns[0])>; def SSrm : Inst<opcode, (outs FR32:$dst), (ins FR32:$src), !strconcat(asmstr, "\t$dst, $src"), - !if(!null(patterns),[]<dag>,!if(!null(!cdr(patterns)),patterns[0],patterns[1]))>; + !if(!empty(patterns),[]<dag>,!if(!empty(!tail(patterns)),patterns[0],patterns[1]))>; } multiclass vscalar<bits<8> opcode, string asmstr = "", list<list<dag>> patterns = []> { def V#NAME#SSrr : Inst<opcode, (outs FR32:$dst), (ins FR32:$src), !strconcat(asmstr, "\t$dst, $src"), - !if(!null(patterns),[]<dag>,patterns[0])>; + !if(!empty(patterns),[]<dag>,patterns[0])>; def V#NAME#SSrm : Inst<opcode, (outs FR32:$dst), (ins FR32:$src), !strconcat(asmstr, "\t$dst, $src"), - !if(!null(patterns),[]<dag>,!if(!null(!cdr(patterns)),patterns[0],patterns[1]))>; + !if(!empty(patterns),[]<dag>,!if(!empty(!tail(patterns)),patterns[0],patterns[1]))>; } multiclass myscalar<bits<8> opcode, string asmstr = "", list<list<dag>> patterns = []> : |