diff options
| author | Siddharth Bhat <siddu.druid@gmail.com> | 2017-06-26 13:12:06 +0000 |
|---|---|---|
| committer | Siddharth Bhat <siddu.druid@gmail.com> | 2017-06-26 13:12:06 +0000 |
| commit | f291c8d510d28ec3464d764c81bd46690edeb9e9 (patch) | |
| tree | 6880edfc02cb5c19c91d613e40c9a776abe72b2b /llvm/lib/Analysis/DemandedBits.cpp | |
| parent | 256070d85c65edddd6d7601b317e9768267321fb (diff) | |
| download | bcm5719-llvm-f291c8d510d28ec3464d764c81bd46690edeb9e9.tar.gz bcm5719-llvm-f291c8d510d28ec3464d764c81bd46690edeb9e9.zip | |
[PPCGCodeGeneration] Allow intrinsics within kernels.
- In D33414, if any function call was found within a kernel, we would bail out.
- This is an over-approximation. This patch changes this by allowing the
`llvm.sqrt.*` family of intrinsics.
- This introduces an additional step when creating a separate llvm::Module
for a kernel (GPUModule). We now copy function declarations from the
original module to new module.
- We also populate IslNodeBuilder::ValueMap so it replaces the function
references to the old module to the ones in the new module
(GPUModule).
Differential Revision: https://reviews.llvm.org/D34145
llvm-svn: 306284
Diffstat (limited to 'llvm/lib/Analysis/DemandedBits.cpp')
0 files changed, 0 insertions, 0 deletions

