Use the name "function" not "method" in IR.