Hi all, I met an error when I run the llc command to transform a bitcode file to C code (source to source): $ llc -march=c -o foo.c foo.ll However, it said "*llc: error: invalid target 'c'.*" I checked the 'llc --version' only to find that there is no *c* as target. The *cpp* was there, which makes calls against the LLVM C++ API. But that's not what I want. I configured my LLVM with default options, thus I supposed the 'cbe' should have been enabled as a supported target. Nevertheless, I tried to enable it explicitly: $ ../configure --enable-targets=cbe It occurred the error: "*configure: error: Unrecognized target cbe*" Any clue? Thank you. -- Mingliang LIU (刘明亮 in Chinese) PACMAN Group, Dept. of Computer Science & Technology Tsinghua University, Beijing 100084, China Email: liuml07 at mails.tsinghua.edu.cn Homepage: http://pacman.cs.tsinghua.edu.cn/~liuml07/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121206/c2da53a2/attachment.html>
Arnold Schwaighofer
2012-Dec-05 16:13 UTC
[LLVMdev] How to enable cbe as a supported target?
The C Backend was remove in 3.1 (http://llvm.org/releases/3.1/docs/ReleaseNotes.html): "Major Changes and Removed Features ... The C backend has been removed. It had numerous problems, to the point of not being able to compile any nontrivial program." On Wed, Dec 5, 2012 at 10:00 AM, Mingliang LIU <liuml07 at gmail.com> wrote:> Hi all, > > I met an error when I run the llc command to transform a bitcode file to C > code (source to source): > $ llc -march=c -o foo.c foo.ll > However, it said "llc: error: invalid target 'c'." I checked the 'llc > --version' only to find that there is no c as target. The cpp was there, > which makes calls against the LLVM C++ API. But that's not what I want. > > I configured my LLVM with default options, thus I supposed the 'cbe' should > have been enabled as a supported target. Nevertheless, I tried to enable it > explicitly: > $ ../configure --enable-targets=cbe > It occurred the error: "configure: error: Unrecognized target cbe" > > Any clue? > > Thank you. > -- > Mingliang LIU (刘明亮 in Chinese) > > PACMAN Group, Dept. of Computer Science & Technology > Tsinghua University, Beijing 100084, China > Email: liuml07 at mails.tsinghua.edu.cn > Homepage: http://pacman.cs.tsinghua.edu.cn/~liuml07/ > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Hi Arnold, Thank you. I googled but missed the release notes. Regards. On Thu, Dec 6, 2012 at 12:13 AM, Arnold Schwaighofer < arnold.schwaighofer at gmail.com> wrote:> The C Backend was remove in 3.1 > (http://llvm.org/releases/3.1/docs/ReleaseNotes.html): > > "Major Changes and Removed Features > ... > The C backend has been removed. It had numerous problems, to the point > of not being able to compile any nontrivial program." > > On Wed, Dec 5, 2012 at 10:00 AM, Mingliang LIU <liuml07 at gmail.com> wrote: > > Hi all, > > > > I met an error when I run the llc command to transform a bitcode file to > C > > code (source to source): > > $ llc -march=c -o foo.c foo.ll > > However, it said "llc: error: invalid target 'c'." I checked the 'llc > > --version' only to find that there is no c as target. The cpp was there, > > which makes calls against the LLVM C++ API. But that's not what I want. > > > > I configured my LLVM with default options, thus I supposed the 'cbe' > should > > have been enabled as a supported target. Nevertheless, I tried to enable > it > > explicitly: > > $ ../configure --enable-targets=cbe > > It occurred the error: "configure: error: Unrecognized target cbe" > > > > Any clue? > > > > Thank you. > > -- > > Mingliang LIU (刘明亮 in Chinese) > > > > PACMAN Group, Dept. of Computer Science & Technology > > Tsinghua University, Beijing 100084, China > > Email: liuml07 at mails.tsinghua.edu.cn > > Homepage: http://pacman.cs.tsinghua.edu.cn/~liuml07/ > > > > > > _______________________________________________ > > LLVM Developers mailing list > > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > >-- Mingliang LIU (刘明亮 in Chinese) PACMAN Group, Dept. of Computer Science & Technology Tsinghua University, Beijing 100084, China Email: liuml07 at mails.tsinghua.edu.cn Homepage: http://pacman.cs.tsinghua.edu.cn/~liuml07/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121206/4b2bb9f0/attachment.html>