Mohammad Norouzi via llvm-dev
2016-Apr-15 14:49 UTC
[llvm-dev] iterate over arguments in machinefunction
Hi everybody, How can I iterate over machinefunction's arguments? I know that for the function it is: Function::ArgumentListType::iterator it ... Best, Mohammad -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160415/e3516300/attachment.html>
Matthias Braun via llvm-dev
2016-Apr-16 00:16 UTC
[llvm-dev] iterate over arguments in machinefunction
MachineFunctions do not have abstract information over arguments, access to the arguments is lowered to concrete operations when building the machine representation: - Values living into the function are tracked as function live ins in MachineRegisterInfo - Values passed on the stack are loaded where they are used You can also still access the IR function via MachineFunction::getFunction() to iterate over the arguments in the abstract form. - Matthias> On Apr 15, 2016, at 7:49 AM, Mohammad Norouzi via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > Hi everybody, > > How can I iterate over machinefunction's arguments? I know that for the function it is: > > Function::ArgumentListType::iterator it ... > > Best, > Mohammad > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev