search for: sectionforglobal

Displaying 7 results from an estimated 7 matches for "sectionforglobal".

2009 Jul 20
2
[LLVMdev] PIC16TargetAsmInfo::getBSSSectionForGlobal
...term goal is to make TargetAsmInfo not depend on libvmcore. This means that no methods in it should take GlobalValue*'s for example. There is a suite of GV classification methods that need to be moved somewhere else, probably in TargetLowering or asmprinter. One method in particular (SectionForGlobal) is virtual and only re- implemented for PIC16, which makes it an obvious candidate for changing. I don't really understand all the section handling logic, but I have to untangle it. It doesn't seem like it is properly factored somehow, so I'd like to simplify it while I'm mo...
2009 Jul 21
0
[LLVMdev] PIC16TargetAsmInfo::getBSSSectionForGlobal
...e TargetAsmInfo not depend on libvmcore. > This means that no methods in it should take GlobalValue*'s for > example. There is a suite of GV classification methods that need to > be moved somewhere else, probably in TargetLowering or asmprinter. One > method in particular (SectionForGlobal) is virtual and only re- > implemented for PIC16, which makes it an obvious candidate for changing. > > I don't really understand all the section handling logic, but I have > to untangle it. It doesn't seem like it is properly factored somehow, > so I'd like to simp...
2011 May 07
0
[LLVMdev] Question about linking llvm-mc when porting a new backend
...) typeinfo for llvm::TargetLoweringObjectFileCOFFin libLLVMCodeGen.a(TargetLoweringObjectFileImpl.cpp.o) "llvm::GuaranteedTailCallOpt", referenced from: __ZN4llvm21GuaranteedTailCallOptE$non_lazy_ptr in libLLVMCodeGen.a(Analysis.cpp.o) "llvm::TargetLoweringObjectFile::SectionForGlobal(llvm::GlobalValue const*, llvm::SectionKind, llvm::Mangler*, llvm::TargetMachine const&) const", referenced from: llvm::AsmPrinter::EmitGlobalVariable(llvm::GlobalVariable const*)in libLLVMAsmPrinter.a(AsmPrinter.cpp.o) llvm::AsmPrinter::EmitGlobalVariable(llvm::GlobalVariable...
2008 Oct 13
0
[LLVMdev] api changes in llvm 2.4
...ubstitution. Function::getSection() returns section set on function explicitely, getSectionForFunction() calculated desired section name, where function should be emitted into (for example, unique function name for linkonce stuff). getSectionForFunction() was replaced with universal TargetAsmInfo::SectionForGlobal() hook. See, for example, X86ATTAsmPrinter::emitFunctionHeader() for usage and ELFTargetAsmInfo class for example implementation of this hook. -- WBR, Anton Korobeynikov
2009 Jul 20
0
[LLVMdev] PIC16TargetAsmInfo::getBSSSectionForGlobal
...iginal Message----- > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On > Behalf Of Chris Lattner > Sent: Monday, July 20, 2009 3:21 PM > To: Sanjiv Kumar Gupta - I00171 > Cc: LLVM Developers Mailing List > Subject: [LLVMdev] PIC16TargetAsmInfo::getBSSSectionForGlobal > > > Hi Sanjiv, > > The PIC16TargetAsmInfo::getBSSSectionForGlobal apparently does magic > that reinterprets the "section" field of a global in a strange way: > > // If GV has a sectin name or section address create that section > now. > if (GV-&gt...
2009 Jul 20
2
[LLVMdev] PIC16TargetAsmInfo::getBSSSectionForGlobal
Hi Sanjiv, The PIC16TargetAsmInfo::getBSSSectionForGlobal apparently does magic that reinterprets the "section" field of a global in a strange way: // If GV has a sectin name or section address create that section now. if (GV->hasSection()) { std::string SectName = GV->getSection(); // If address for a variable is spec...
2011 May 06
0
[LLVMdev] Question about linking llvm-mc when porting a new backend
...) typeinfo for llvm::TargetLoweringObjectFileCOFFin libLLVMCodeGen.a(TargetLoweringObjectFileImpl.cpp.o) "llvm::GuaranteedTailCallOpt", referenced from: __ZN4llvm21GuaranteedTailCallOptE$non_lazy_ptr in libLLVMCodeGen.a(Analysis.cpp.o) "llvm::TargetLoweringObjectFile::SectionForGlobal(llvm::GlobalValue const*, llvm::SectionKind, llvm::Mangler*, llvm::TargetMachine const&) const", referenced from: llvm::AsmPrinter::EmitGlobalVariable(llvm::GlobalVariable const*)in libLLVMAsmPrinter.a(AsmPrinter.cpp.o) llvm::AsmPrinter::EmitGlobalVariable(llvm::GlobalVariable...