[llvm-dev] Source level code transformation V.S. IR-level code transformation
陳韋任 via llvm-dev
llvm-dev at lists.llvm.org
Tue Jan 16 04:43:54 PST 2018
2018-01-16 7:11 GMT+08:00 Linchuan Chen <chenlinc at cse.ohio-state.edu>:
> Thanks Weiren!
> My goal is to transform the code automatically by doing some code
> analysis, instead of rewriting it manually.
> To do this source level auto transformation, do you have any
> suggestions on what tool to use? Thanks again!!
What I mean is, I would modify the code manually and see if SLP works on
it. If so, we know what code
we have to output in the end, and
the first step. Then
know if the transformation can be done in source or IR level.
You can compare the IR
before and after the
to know if IR transformation can be done easily or not. If it's easy,
then write a IR transformation; otherwise, you can do source transformation
by using LibTooling . Asking question about
on cfe-dev  would be appropriate.
Wei-Ren Chen (陳韋任)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev