Displaying 6 results from an estimated 6 matches for "addppctargetargs".
2013 Jan 31
2
[LLVMdev] Getting command line options to affect subtarget features
...y to do this, but peeking at code
> > from other targets hasn't enlightened me. Any advice for how I can
> > accomplish this?
>
> Off of the top of my head...
>
> Within the current infrastructure, I think that we need to alter the Clang PowerPC toolchain code (Clang::AddPPCTargetArgs in Tools.cpp) to do something like this:
>
> if (Args.hasFlag(options::OPT_fno_altivec, options::OPT_faltivec, true)) {
> CmdArgs.push_back("-backend-option");
> CmdArgs.push_back("-mattr=-altivec");
> }
Perfect, Hal, thanks! That makes good sense. I'l...
2013 Jan 31
0
[LLVMdev] Getting command line options to affect subtarget features
...re there must be an obvious way to do this, but peeking at code
> from other targets hasn't enlightened me. Any advice for how I can
> accomplish this?
Off of the top of my head...
Within the current infrastructure, I think that we need to alter the Clang PowerPC toolchain code (Clang::AddPPCTargetArgs in Tools.cpp) to do something like this:
if (Args.hasFlag(options::OPT_fno_altivec, options::OPT_faltivec, true)) {
CmdArgs.push_back("-backend-option");
CmdArgs.push_back("-mattr=-altivec");
}
Why this not done currently I don't know.
-Hal
>
> Thanks! I app...
2013 Jan 31
2
[LLVMdev] Getting command line options to affect subtarget features
The problem I'm trying to solve: Invoking clang on PowerPC with
-fno-altivec has no effect.
>From what I've been able to piece together, PPC.td specifies various
CPUs and the processor features available on each. So for example we
have:
def FeatureAltivec : SubtargetFeature<"altivec","HasAltivec", "true",
2013 Jan 31
2
[LLVMdev] Getting command line options to affect subtarget features
...ther targets hasn't enlightened me. Any advice for how I can
> > > > accomplish this?
> > >
> > > Off of the top of my head...
> > >
> > > Within the current infrastructure, I think that we need to alter the Clang PowerPC toolchain code (Clang::AddPPCTargetArgs in Tools.cpp) to do something like this:
> > >
> > > if (Args.hasFlag(options::OPT_fno_altivec, options::OPT_faltivec, true)) {
> > > CmdArgs.push_back("-backend-option");
> > > CmdArgs.push_back("-mattr=-altivec");
> > > }
>...
2013 Jan 31
0
[LLVMdev] Getting command line options to affect subtarget features
...ode
> > > from other targets hasn't enlightened me. Any advice for how I can
> > > accomplish this?
> >
> > Off of the top of my head...
> >
> > Within the current infrastructure, I think that we need to alter the Clang PowerPC toolchain code (Clang::AddPPCTargetArgs in Tools.cpp) to do something like this:
> >
> > if (Args.hasFlag(options::OPT_fno_altivec, options::OPT_faltivec, true)) {
> > CmdArgs.push_back("-backend-option");
> > CmdArgs.push_back("-mattr=-altivec");
> > }
>
> Perfect, Hal, thank...
2013 Jan 31
0
[LLVMdev] Getting command line options to affect subtarget features
...nlightened me. Any advice for how I can
> > > > > accomplish this?
> > > >
> > > > Off of the top of my head...
> > > >
> > > > Within the current infrastructure, I think that we need to alter the Clang PowerPC toolchain code (Clang::AddPPCTargetArgs in Tools.cpp) to do something like this:
> > > >
> > > > if (Args.hasFlag(options::OPT_fno_altivec, options::OPT_faltivec, true)) {
> > > > CmdArgs.push_back("-backend-option");
> > > > CmdArgs.push_back("-mattr=-altivec");
&g...