Hi there,
I was wondering if there is a way to set llc flags in clang?
Like
llc -mattr=+abc
How to set this subtarget in clang?
Thanks,
Xiaochu
Hi there,
I was wondering if there is a way to set llc flags in clang?
Like
llc -mattr=+abc
How to set this subtarget in clang?
Thanks,
Xiaochu
(+cfe-dev for clang question)
Hi there,
I was wondering if there is a way to set llc flags in clang?
In general no, in practice most development flags (accessible from opt/llc) are available using -mllvm -flag=value
Like
llc -mattr=+abc
How to set this subtarget in clang?
Target attributes are accessible using the cc1 flag "-target-feature”, the equivalent to llc -mattr=“+abc” should be:
clang -Xclang -target-feature -Xclang +abc
—Mehdi
Cool! Very helpful!