Displaying 2 results from an estimated 2 matches for "createarmexpandpseudopass".
2018 Jan 16
2
Why do backend pass definitions call a seperate function just to call the constructor?
Things like this in `lib/Target/ARM/ARMExpandPseudoInsts.cpp`
FunctionPass *llvm::createARMExpandPseudoPass() {
> return new ARMExpandPseudo();
> }
And other functions have basically the same style.
What's the point of doing it this way instead of just calling `new
ARMExpandPseudo` in any place that you would have called this function?
--
Ahmed Samara
M.S. Computer Engineering
----------...
2018 Jan 16
0
Why do backend pass definitions call a seperate function just to call the constructor?
On 16 January 2018 at 20:40, Ahmed Samara via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Things like this in `lib/Target/ARM/ARMExpandPseudoInsts.cpp`
>
>> FunctionPass *llvm::createARMExpandPseudoPass() {
>> return new ARMExpandPseudo();
>> }
>
> And other functions have basically the same style.
>
> What's the point of doing it this way instead of just calling `new
> ARMExpandPseudo` in any place that you would have called this function?
Mostly it's so that...