Adding Kavon. It would be good to record the outcome of this discussion in a 'Note' with the cml_cont declaration, explaining what it is for.
Simon | -----Original Message----- | From: ghc-devs <ghc-devs-boun...@haskell.org> On Behalf Of Ömer Sinan | Agacan | Sent: 18 March 2018 07:32 | To: Shao, Cheng <cheng.s...@tweag.io> | Cc: ghc-devs <ghc-devs@haskell.org> | Subject: Re: Is "cml_cont" of CmmCall used in practice? | | Hi Shao, | | Perhaps not in the Cmm output generated for your programs, but it's | definitely used in the code generator. See e.g. `lowerSafeForeignCall` | and `blockCode` which set the field with `Just`. The former seems to | be related with foreign calls so perhaps try compiling a FFI package. | `CmmLayoutStack` uses that field for code generation (I don't | understand the details yet). | | Ömer | | 2018-03-18 8:38 GMT+03:00 Shao, Cheng <cheng.s...@tweag.io>: | > Hi all, | > | > Is the "cml_cont" field of the CmmCall variant is really used in | > practice? I traversed the output of raw Cmm produced by ghc | compiling | > the whole base package, but the value of cml_cont is always Nothing. | > | > Regards, | > Shao Cheng | > | > _______________________________________________ | > ghc-devs mailing list | > ghc-devs@haskell.org | > | https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.h | > askell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fghc- | devs&data=04%7C01%7Csi | > | monpj%40microsoft.com%7Cb624f4ab25864a0a466d08d58ca28b07%7C72f988bf86f | > | 141af91ab2d7cd011db47%7C1%7C0%7C636569552118955129%7CUnknown%7CTWFpbGZ | > | sb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwifQ%3D%3D%7C-1 | > &sdata=tdrRLRO6oORnAtTojQWMOXiL44hjVDJHFsORetboceM%3D&reserved=0 | > | _______________________________________________ | ghc-devs mailing list | ghc-devs@haskell.org | https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.h | askell.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fghc- | devs&data=04%7C01%7Csimonpj%40microsoft.com%7Cb624f4ab25864a0a466d08d5 | 8ca28b07%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C6365695521189551 | 29%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI | 6Ik1haWwifQ%3D%3D%7C- | 1&sdata=tdrRLRO6oORnAtTojQWMOXiL44hjVDJHFsORetboceM%3D&reserved=0 _______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs