Displaying 1 result from an estimated 1 matches for "operator_add".
2009 Apr 01
0
[LLVMdev] Type operator defenition
...i=0, e=ta->getNumContainedTypes(); i<e; i++)
if( isa<Function>(*ta->getContainedType(i)) )
if( ta->getName() == "$operator +" )
call(function, valueof("a"), valueof("b") );
where else we could do something like: O(1)
enum { operator_add = 0, ... } ;
call( typeof("a")->operator[operator_add],
valueof("a"), valueof("b"));
With best regards,
-- Kasra