是否可以使用llc标志运行clang [英] Is it possible to run clang with llc flags

查看:164
本文介绍了是否可以使用llc标志运行clang的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以运行clang并添加llc标志?我想使用"-all-after-all",-print-before-all",-debug-only" ...,而不必在两者之间使用.bc文件.

Is there a way to run the clang and add llc flags ? I want to use "-print-after-all", "-print-before-all", "-debug-only" ... without having to use the .bc file in between.

推荐答案

可以使用-mllvm将其他参数传递给LLVM的选项解析器.对于您的情况,它看起来像这样:

Additional arguments can be passed to LLVM's option parser with -mllvm. For your scenario this would look something like this:

clang [...] -mllvm -print-after-all

这篇关于是否可以使用llc标志运行clang的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆