[cfe-dev] generate 32 llvm IR using clang

Don Hinton via cfe-dev cfe-dev at lists.llvm.org
Thu Sep 7 16:45:52 PDT 2017


You don't need to pass -cc1.  Try this to verify:

clang x.c -m32 -emit-llvm -S -o -


On Thu, Sep 7, 2017 at 4:30 PM, Rajarshi Mukherjee via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hi
> I am generating llvm IR using
> clang -cc1 -emit-llvm x.c
>
> which seems to be generating 64bit IR
> Is there a way to generate 32bit IR.
> I tried -m32 with clang but that did not work with cc1 option.
> Thanks
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170907/6b6b6cc0/attachment.html>


More information about the cfe-dev mailing list