[LLVMdev] # operands < # args

Chris Lattner sabre at nondot.org
Mon Dec 4 13:43:21 PST 2006


On Sun, 3 Dec 2006, Ryan M. Lefever wrote:
> In n transform I'm writing, when I call arg_size() on a variable
> argument function similar to printf, it returns 1.  However when I call
> getNumOperands() it returns 0.  Isn't an argument a type of operand?

Nope, arguments are not operands.  Functions never have operands.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list