Re: How inline pragma works

2015-11-10 Thread Ömer Sinan Ağacan
There's this section in GHC user manual: https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/pragmas.html#inline-noinline-pragma But see also: https://ghc.haskell.org/trac/ghc/ticket/10766 2015-11-10 5:16 GMT-05:00 Эдгар Жаворонков : > Hello everyone! > >

Re: How inline pragma works

2015-11-10 Thread Эдгар Жаворонков
And can you tell me, where can i find a source code in GHC to see, how this pragma is handeled? --- С уважением, Жаворонков Эдгар Best regards, Edgar A. Zhavoronkov 2015-11-10 17:48 GMT+03:00 Ömer Sinan Ağacan : > There's this section in GHC user manual: > >

Re: How inline pragma works

2015-11-10 Thread Ömer Sinan Ağacan
I don't know the whole story, but here are some pointers to get you started: - Internally, inlined code is called "unfolding". You can see the definition in CoreSyn. - CoreUnfold module has important functions to decide whether to inline or not. - Actual work of replacing identifiers with

How inline pragma works

2015-11-10 Thread Эдгар Жаворонков
Hello everyone! Where can i read about how does INLINE pragma in compiler works? --- С уважением, Жаворонков Эдгар Best regards, Edgar A. Zhavoronkov ___ ghc-devs mailing list ghc-devs@haskell.org