search for: emitattribut

Displaying 9 results from an estimated 9 matches for "emitattribut".

Did you mean: emitattribute
2014 Dec 19
2
[LLVMdev] questions about ARM EABI attributes
...er_model Suppose there are two functions in a module which have different sets of function attributes. One function has attributes for "-ffast-math" (foo1) and the other (foo0) has attributes for "-fno-fast-math". In that case, which set of eabi attributes should ARMAsmPrinter::emitAttributes emit? ARMAsmPrinter::emitAttributes is called once at the start of a file (not once per every function), so I assume it has to merge those attributes which have different values or reject the IR if it discovers incompatibilities. define double @foo0(double %a) #0 { entry: %add = fadd double %a...
2010 May 04
2
[LLVMdev] MCStreamer itnerface
...MCStreamer interface, with the caller givin the ability to give hints as to what section to place the symbol into. instead of SwitchSection, there would be BeginSymbol, and SymbolSymbol, it would be illegal to call any EmitXXX function outside of these two calls BeginSymbol(Symbol, SectionHint) EmitAttribute(...) EmitAttribute(...) ... StartFragmentEmission() EmitFragment(...) EmitFragment(...) ... EndSymbol() Object file writers would typically start recording fragments and attributes for a symbol on the BeginSymbol, then at EndSymbol they would evaluate what was streamed, and decide what...
2010 May 05
3
[LLVMdev] MCStreamer interface
...mantic information. In fact, MCSection is the place that I'd start for COFF bringup. > instead of SwitchSection, there would be BeginSymbol, and SymbolSymbol, it would > be illegal to call any EmitXXX function outside of these two calls > > BeginSymbol(Symbol, SectionHint) > EmitAttribute(...) > EmitAttribute(...) > ... > StartFragmentEmission() > EmitFragment(...) > EmitFragment(...) > ... > EndSymbol() > > Object file writers would typically start recording fragments and attributes for > a symbol on the BeginSymbol, then at EndSymbol they...
2015 Jan 09
5
[LLVMdev] Enable changing UnsafeFPMath on a per-function basis
...e::getSubtargetImpl(const Function &) to initialize STI (pointer to the per-function subtarget object). Currently, the version of TargetMachine::getSubtargetImpl that doesn’t take a const Function& parameter is called, which returns the module-level subtarget object. 5. Fix ARMAsmPrinter::emitAttributes to compute the value of TargetOptions::UnsafeFPMath based on the function attributes of all the functions in the module being compiled (see the link below). http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-December/079904.html 6. Move the code in CGCall.cpp that sets the function attributes to B...
2011 Feb 25
2
[LLVMdev] ARM ELF target and the use of VFP/NEON instructions
...sting it here for more convenience: Index: lib/Target/ARM/ARMAsmPrinter.cpp =================================================================== --- lib/Target/ARM/ARMAsmPrinter.cpp (revision 123053) +++ lib/Target/ARM/ARMAsmPrinter.cpp (working copy) @@ -458,7 +458,13 @@ AttrEmitter->EmitAttribute(ARMBuildAttrs::THUMB_ISA_use, 1); } - // FIXME: Emit FPU type + if (Subtarget->hasNEON()) + OutStreamer.EmitRawText(StringRef("\t.fpu neon")); + else if (Subtarget->hasVFP3()) + OutStreamer.EmitRawText(StringRef("\t.fpu vfpv3")); + else if (Subtarget->ha...
2011 Feb 25
0
[LLVMdev] ARM ELF target and the use of VFP/NEON instructions
On Fri, Feb 25, 2011 at 12:16 PM, Siarhei Siamashka <siarhei.siamashka at gmail.com> wrote: > On Thursday 03 February 2011 14:14:28 Renato Golin wrote: >> On 3 February 2011 10:25, Siarhei Siamashka <siarhei.siamashka at gmail.com> > wrote: >> > I have submitted a bug some time ago to LLVM bugtracker: >> > http://llvm.org/bugs/show_bug.cgi?id=8931 >>
2011 Feb 25
2
[LLVMdev] ARM ELF target and the use of VFP/NEON instructions
On Thursday 03 February 2011 14:14:28 Renato Golin wrote: > On 3 February 2011 10:25, Siarhei Siamashka <siarhei.siamashka at gmail.com> wrote: > > I have submitted a bug some time ago to LLVM bugtracker: > > http://llvm.org/bugs/show_bug.cgi?id=8931 > > Hi Siarhei, > > This is a really silly bug with a simple fix. > > We have a similar patch here
2010 May 05
0
[LLVMdev] MCStreamer interface
...the same be true of MCSymbol, and their data counterparts? > > instead of SwitchSection, there would be BeginSymbol, and SymbolSymbol, > it would > > be illegal to call any EmitXXX function outside of these two calls > > > > BeginSymbol(Symbol, SectionHint) > > EmitAttribute(...) > > EmitAttribute(...) > > ... > > StartFragmentEmission() > > EmitFragment(...) > > EmitFragment(...) > > ... > > EndSymbol() > > > > Object file writers would typically start recording fragments and > attributes for > &gt...
2015 Jan 12
2
[LLVMdev] Enable changing UnsafeFPMath on a per-function basis
...ction &) to initialize STI > (pointer to the per-function subtarget object). Currently, the > version of TargetMachine::getSubtargetImpl that doesn’t take a const > Function& parameter is called, which returns the module-level > subtarget object. > > 5. Fix ARMAsmPrinter::emitAttributes to compute the value of > TargetOptions::UnsafeFPMath based on the function attributes of all > the functions in the module being compiled (see the link below). > > http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-December/079904.html > > > 6. Move the code in CGCall.cpp th...