Displaying 1 result from an estimated 1 matches for "findhelp".
Did you mean:
findheap
2010 Aug 30
1
[LLVMdev] Recursion in TableGen
...gt; {
string Name = n;
int Value = v;
}
// Define some objects usable as arguments.
def X : Data<"X", 1>;
def Y : Data<"Y", 1>;
def Z : Data<"X", 2>;
// Implement a recursive algorith to search a list and return a value
// if it is found.
class FindHelper<Data head, list<Data> tail,
string name, int default> {
int Result = !if(!eq(head.Name, name),
head.Value,
!if(!null(tail),
default,
FindHelper<!car(tail),...