[llvm-dev] Passing llvm option -mem2reg to clang

Mehdi Amini via llvm-dev llvm-dev at lists.llvm.org
Mon Mar 21 18:01:13 PDT 2016


Hi,

You can't schedule passes from the command line using clang, only `opt` has this ability (AFAIK).

If you tell us what is your use-case, we may be able to point you to an alternative solution.

-- 
Mehdi

> On Mar 21, 2016, at 5:52 PM, Syed Rafiul Hussain via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> Hi,
> 
> I was trying to pass llvm option -mem2reg to clang using -mllvm and I
> found the following error:
> 
> clang (LLVM option parsing): Unknown command line argument '-mem2reg'.
> Try: 'clang (LLVM option parsing) -help'
> clang (LLVM option parsing): Did you mean '-debug'?
> 
> I would appreciate if anyone could help me.
> 
> -- 
> Syed Rafiul Hussain
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev



More information about the llvm-dev mailing list