Displaying 5 results from an estimated 5 matches for "setfeatureenabled".
2016 Mar 05
2
Enable / Disable a processor feature
...;;
def : Proc<"esencia", EsenciaModel, [FeatureMul,
FeatureDiv,
FeatureCmov,
FeatureAddc
]>;
This is what I have in EsenciaTargetInfo::setFeatureEnabled(...) in
clang/lib/Basic/Targets.cpp
virtual void setFeatureEnabled(llvm::StringMap<bool> &Features,
StringRef Name,
bool Enabled) const {
if (Name == "mul" ||
Name == "div" ||
Name...
2013 Jan 31
2
[LLVMdev] Getting command line options to affect subtarget features
...tack");
> }
>
> But it doesn't like -mattr. Anyone have thoughts why?
I found some ideas to try in
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-September/017087.html.
Perhaps I can try pushing these tokens onto CmdArgs and then enable
altivec as a feature in PPCTargetInfo::setFeatureEnabled():
-Xclang -target-feature -Xclang -altivec
I'll give that a whirl and see what happens.
Bill
>
> Thanks,
> Bill
>
> >
> > Thanks,
> > Bill
> >
> > >
> > > Why this not done currently I don't know.
> > >
> > >...
2013 Jan 31
0
[LLVMdev] Getting command line options to affect subtarget features
...t; > But it doesn't like -mattr. Anyone have thoughts why?
>
> I found some ideas to try in
> http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-September/017087.html.
> Perhaps I can try pushing these tokens onto CmdArgs and then enable
> altivec as a feature in PPCTargetInfo::setFeatureEnabled():
>
> -Xclang -target-feature -Xclang -altivec
>
> I'll give that a whirl and see what happens.
Nope, that's no good either (as I probably should have expected):
wschmidt at bns:~/src/llvm> $LLVM_INSTALL/bin/clang vectest.c -S -O3 -o vectest.s -fno-altivec
error: unknown...
2013 Jan 31
0
[LLVMdev] Getting command line options to affect subtarget features
On Thu, 2013-01-31 at 10:17 -0600, Bill Schmidt wrote:
>
> On Thu, 2013-01-31 at 09:42 -0600, Hal Finkel wrote:
> > ----- Original Message -----
> > > From: "Bill Schmidt" <wschmidt at linux.vnet.ibm.com>
> > > To: llvmdev at cs.uiuc.edu
> > > Sent: Thursday, January 31, 2013 9:26:15 AM
> > > Subject: [LLVMdev] Getting command line
2013 Jan 31
2
[LLVMdev] Getting command line options to affect subtarget features
On Thu, 2013-01-31 at 09:42 -0600, Hal Finkel wrote:
> ----- Original Message -----
> > From: "Bill Schmidt" <wschmidt at linux.vnet.ibm.com>
> > To: llvmdev at cs.uiuc.edu
> > Sent: Thursday, January 31, 2013 9:26:15 AM
> > Subject: [LLVMdev] Getting command line options to affect subtarget features
> >
> > The problem I'm trying to