[llvm-dev] Way to guarantee generated indirect call is via memory?

Eugene Rozenfeld via llvm-dev llvm-dev at lists.llvm.org
Mon Aug 17 19:05:20 PDT 2015


Yes, I tried small code model. It does help some but still doesn't guarantee that optimizations won't decide to hoist the address into a register.

Eugene

-----Original Message-----
From: Sanjoy Das [mailto:sanjoy at playingwithpointers.com] 
Sent: Monday, August 17, 2015 4:48 PM
To: Eugene Rozenfeld <Eugene.Rozenfeld at microsoft.com>
Cc: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] Way to guarantee generated indirect call is via memory?

> One possibility is to use patchpoints
> (https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fllvm.org%2fdocs%2fStackMaps.html%23id9&data=01%7c01%7cEugene.Rozenfeld%40microsoft.com%7c85541bfb31834041a92e08d2a75e4f5b%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=ThCQ46133HVAGtGsRGgAwtl%2b0pDYeFP9KlhYdVmBWog%3d). Are there any other alternatives?

Have you tried using a small code model?

-- Sanjoy


More information about the llvm-dev mailing list