search for: getorignam

Displaying 2 results from an estimated 2 matches for "getorignam".

Did you mean: getorigname
2017 Jun 22
2
Legal names for Functions and other Identifiers
Thank You Chen ! On Thu, Jun 22, 2017 at 5:21 PM 陳韋任 <chenwj.cs97g at g2.nctu.edu.tw> wrote: > Perhaps you can refer to [1]. Function name should be a global one. > > [1] http://llvm.org/docs/LangRef.html#identifiers > > HTH, > chenwj > > > 2017-06-22 16:35 GMT+08:00 SANJAY SRIVALLABH SINGAPURAM via llvm-dev < > llvm-dev at lists.llvm.org>: > >>
2017 Jun 22
2
Legal names for Functions and other Identifiers
...mt) { Builder.SetInsertPoint(&HostInsertPoint); Value *Parameters = createLaunchParameters(Kernel, F, SubtreeValues); - std::string Name = "kernel_" + std::to_string(Kernel->id); + std::string Name = S.getFunction().getName().str() + "_" + + S.getOrigName() + "_kernel_" + + std::to_string(Kernel->id); (Where getOrigName returns the name of the Scop before the IRBuilder modified it) Produces the effect, --- a/test/GPGPU/kernel-params-only-some-arrays.ll <https://github.com/llvm-mirror/polly/blob/6b8cb877c2fa3ee0...