Note that getNumArgOperands and arg_operands are considered legacy names. See llvm/include/llvm/IR/InstrTypes.h for details.