search for: switchsect

Displaying 20 results from an estimated 34 matches for "switchsect".

Did you mean: switchnet
2016 Aug 05
2
XRay: Demo on x86_64/Linux almost done; some questions.
...isTargetELF()) { auto *Section = OutContext.getELFSection( "xray_instr_map", ELF::SHT_PROGBITS, ELF::SHF_ALLOC | ELF::SHF_GROUP | ELF::SHF_MERGE, 0, CurrentFnSym->getName()); auto PrevSection = OutStreamer->getCurrentSectionOnly(); OutStreamer->SwitchSection(Section); for (const auto &Sled : Sleds) { OutStreamer->EmitSymbolValue(Sled.Sled, 8); OutStreamer->EmitSymbolValue(CurrentFnSym, 8); auto Kind = static_cast<uint8_t>(Sled.Kind); OutStreamer->EmitBytes( StringRef(reinterpret_cast<const...
2014 Jan 31
5
[LLVMdev] emitting function stub for mips16 floating point patch
I'm rewriting this patch for the stubs to not use outputing of raw text. Generating the instructions is very straightforward and that part is done. I'm translating the actual function now. How do you emit an .ent or .globl from asm printer? .type ? .end ?? .section ??? I'm studying the classes now but it should be simple to do so if you know, you can save me some time because this
2013 Oct 10
0
[LLVMdev] [PATCH] R600/SI: Embed disassembly in ELF object
...bjFileLowering().getContext(); > + const MCSectionELF *ConfigSection = Context.getELFSection(".AMDGPU.config", > ELF::SHT_PROGBITS, 0, > SectionKind::getReadOnly()); > OutStreamer.SwitchSection(ConfigSection); > + const AMDGPUSubtarget &STM = TM.getSubtarget<AMDGPUSubtarget>(); > if (STM.getGeneration() > AMDGPUSubtarget::NORTHERN_ISLANDS) { > EmitProgramInfoSI(MF); > } else { > EmitProgramInfoR600(MF); > } > + > + DisasmLines.c...
2010 May 04
2
[LLVMdev] MCStreamer itnerface
...ts, a unnammed "virtual" symbol can be used when there is no explicit label defined. Section assignment should be the responsiblity of the object imlementing the 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 f...
2013 Oct 10
2
[LLVMdev] [PATCH] R600/SI: Embed disassembly in ELF object
Hi, This patch adds R600/SI disassembly text to compiled object files, when a code dump is requested, to assist debugging in Mesa clients. Here's an example of the output in a Mesa client with a corresponding patch and RADEON_DUMP_SHADERS set: Shader Disassembly: S_WQM_B64 EXEC, EXEC ; BEFE0A7E S_MOV_B32 M0, SGPR6 ; BEFC0306
2010 May 02
0
[LLVMdev] Win32 COFF Support
On Sun, May 2, 2010 at 1:47 PM, Aaron Gray <aaronngray.lists at googlemail.com>wrote: > On 2 May 2010 19:32, Nathan Jeffords <blunted2night at gmail.com> wrote: > >> Thanks for both of your feedback, I will attempt to make it fit LLVM >> coding standards better before I resubmit my work. > > > You can send me early drafts to run past GCC, send me something
2013 Jan 16
0
[LLVMdev] RFC: auto-linking IR proposal
...LoweringObjectFileCOFF &TLOFCOFF = static_cast<const TargetLoweringObjectFileCOFF&>(getObjFileLowering()); + // Output linker support code for #pragma comment(lib, ...) on Windows + if (M.lib_size() > 0 && Subtarget->isTargetWindows()) { + OutStreamer.SwitchSection(TLOFCOFF.getDrectveSection()); + SmallString<128> name; + for (Module::lib_iterator I = M.lib_begin(), E = M.lib_end(); + I != E; ++I) { + name = " /DEFAULTLIB:\""; + name += *I; + name += "\""; + OutStreamer.Emi...
2010 May 02
2
[LLVMdev] Win32 COFF Support
On 2 May 2010 19:32, Nathan Jeffords <blunted2night at gmail.com> wrote: > Thanks for both of your feedback, I will attempt to make it fit LLVM coding > standards better before I resubmit my work. You can send me early drafts to run past GCC, send me something that works. As far as the hooks I put in, they are really only there so I could build > the object exporter outside of
2013 Dec 18
1
[LLVMdev] GCModuleInfo and MCJIT
...on't know why, probably because somewhere, an AsmPrinter or MCJIT supposes that another section is active after the call to finishAssembly. To solve the problem, you just have to add const MCSection* sec = AP.getCurrentSection(); et the beginning of finishAssembly, and AP.OutStreamer.SwitchSection(sec); at the end. See you, Gaël 2013/12/18 Gaël Thomas <gael.thomas00 at gmail.com>: > Hi! > > I have now a more precise question, I hope that this time, someone > will be able to help me :) > > I'm now able to find the gc meta data. To find this data, I simply &...
2013 Mar 27
1
[LLVMdev] LLVM pass question
So the switching between mips16 and mips32 on a per function basis seems to basically be working except that asm printer has some kind of issue here. I'm debugging that now. I get this: lc: /home/rkotler/workspace/llvmpb6/include/llvm/MC/MCStreamer.h:224: void llvm::MCStreamer::SwitchSection(const llvm::MCSection*): Assertion `Section && "Cannot switch to a null section!"' failed. 0 llc 0x00000000015a98b1 llvm::sys::PrintStackTrace(_IO_FILE*) + 38 1 llc 0x00000000015a9b2e 2 llc 0x00000000015a9586 3 libpthread.so.0 0x000...
2016 Aug 04
2
XRay: Demo on x86_64/Linux almost done; some questions.
> On 4 Aug 2016, at 06:27, Serge Rogatch <serge.rogatch at gmail.com> wrote: > > Hi Dean, > > I have a question about the following piece of code in compiler-rt/trunk/lib/xray/xray_trampoline_x86.S : > movq _ZN6__xray19XRayPatchedFunctionE(%rip), %rax > testq %rax, %rax > je .Ltmp0 > > // assume that %r10d has the function id. > movl %r10d,
2013 Dec 17
0
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...arser::finishParse() { + for (ConstantPoolMapTy::iterator CpI = ConstantPools.begin(), CpE = ConstantPools.end(); CpI != CpE; ++CpI) { + const MCSection *Section = CpI->first; + ConstantPool &CP = CpI->second; + MCStreamer &Streamer = getParser().getStreamer(); + Streamer.SwitchSection(Section); + Streamer.EmitLabel(CP.getLabel()); + for (size_t I = 0; I < CP.getNumEntries(); ++I) + Streamer.EmitValue(CP.getEntry(I), 4); + } +} This is missing data-in-code indicators (see EmitDataRegion()). + at RUN: clang -target arm -integrated-as -c %s -o %t + at RUN: llvm...
2016 Aug 08
2
XRay: Demo on x86_64/Linux almost done; some questions.
...tELFSection( > > "xray_instr_map", ELF::SHT_PROGBITS, > > ELF::SHF_ALLOC | ELF::SHF_GROUP | ELF::SHF_MERGE, 0, > > CurrentFnSym->getName()); > > auto PrevSection = OutStreamer->getCurrentSectionOnly(); > > OutStreamer->SwitchSection(Section); > > for (const auto &Sled : Sleds) { > > OutStreamer->EmitSymbolValue(Sled.Sled, 8); > > OutStreamer->EmitSymbolValue(CurrentFnSym, 8); > > auto Kind = static_cast<uint8_t>(Sled.Kind); > > OutStreamer->EmitByt...
2016 May 21
1
Using an MCStreamer Directly to produce an object file?
...an empty output .o file... I was thinking it may be because of section issues, so I did add some initial sections, hoping that might help: Str->InitSections(false); MCSection *textsect = Ctx.getELFSection(".text", ELF::SHT_PROGBITS, ELF::SHF_EXECINSTR | ELF::SHF_ALLOC); Str->SwitchSection(textsect); This did not seem to help at all. I'm running out of ideas. Anyone know how to use an MCStreamer object directly to make and object file? Thanks so much for your time, ~Aaron Vose (Software Engineer) (Cray Inc.)
2012 Dec 15
0
[LLVMdev] Setting ELF section alignment at the Target level
...t;, ELF::SHT_MIPS_OPTIONS, ELF::SHF_ALLOC |ELF::SHF_MIPS_NOSTRIP, SectionKind::getMetadata()); ReginfoSection is defined as a MCSection *. Dumping information to the out streamer is simple: OutStreamer.SwitchSection(ReginfoSection); It should be simple. I hope I just missed the obvious. I'd also would like the ability to change the section fields of generic ELF sections at the Target level. Thanks, Jack -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists....
2014 Feb 04
2
[LLVMdev] emitting function stub for mips16 floating point patch
...veEnt in the mips target streamer. > >> or .globl > EmitSymbolAttribute with MCSA_Global > >> from asm printer? >> .type ? > EmitSymbolAttribute with MCSA_ELF_Type* > >> .end ?? > emitDirectiveEnd on the mips target streamer > >> .section ??? > SwitchSection > >> I'm studying the classes now but it should be simple to do so if you know, >> you can save me some time >> because this is another maze of llvm data abstraction. > The rule of the thumb is that each line in assembly is a method in the > streamer or target stre...
2010 May 05
3
[LLVMdev] MCStreamer interface
...nsible for mapping a global/function -> section. This interface (not mcstreamer) should handle this. The important point here is that the COFF MCSection needs to have the right level of semantic 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(...) >...
2013 Nov 16
2
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
Moving discussion to llvm-commits now that I have a more developed implementation: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20131111/195401. html > -----Original Message----- > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On > Behalf Of David Peixotto > Sent: Tuesday, November 12, 2013 11:09 AM > To: 'Amara Emerson' >
2015 Aug 02
2
[LLVMdev] Unable to generate obj file using llc for bpf
Dear there, I wasn't able to generate obj file for bpf using llc: llc -march bpf -filetype=obj foo.bc Anyone knows what is the missing part in their backend? I want to make it work for my project. Thanks, Xiaochu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150802/e0b55467/attachment.html>
2013 Dec 17
2
[LLVMdev] Implementing the ldr pseudo instruction in ARM integrated assembler
...for (ConstantPoolMapTy::iterator CpI = ConstantPools.begin(), CpE = > ConstantPools.end(); CpI != CpE; ++CpI) { > + const MCSection *Section = CpI->first; > + ConstantPool &CP = CpI->second; > + MCStreamer &Streamer = getParser().getStreamer(); > + Streamer.SwitchSection(Section); > + Streamer.EmitLabel(CP.getLabel()); > + for (size_t I = 0; I < CP.getNumEntries(); ++I) > + Streamer.EmitValue(CP.getEntry(I), 4); > + } > +} > > This is missing data-in-code indicators (see EmitDataRegion()). I was not aware of that API, thanks...