search for: setcodemodelforstatic

Displaying 4 results from an estimated 4 matches for "setcodemodelforstatic".

2010 Jul 20
0
[LLVMdev] MC-JIT
...an >> large monolithic patches out of tree. > > Ok. Sorry for the too big patch. Attached is the first patch adding > only 2 hooks on TargetMachine and on MCAssembler. Style should be LLVM > compliant. Apply it with "patch -p0". + // Make sure the code model is set. + setCodeModelForStatic(); For the JIT, this should be setCodeModelForJIT; it makes a difference on, for example, x86-64. I'd also suggest changing the name of the method appropriately. - llvm::OwningPtr<MCObjectWriter> Writer(getBackend().createObjectWriter(OS)); - if (!Writer) - report_fatal_error(&quo...
2010 Jul 20
2
[LLVMdev] MC-JIT
> In the context of the JIT, there really is no such thing as a > relocation, just fixups. I'm not completely sure what the right > approach is, but the JIT should be able to fully resolve all of the > symbols that are being used in the module. We may need some extra > interfaces to allow the JIT to tell the MCAssembler about the address > of some external symbols though.
2010 Jul 20
2
[LLVMdev] MC-JIT
...atches out of tree. >> >> Ok. Sorry for the too big patch. Attached is the first patch adding >> only 2 hooks on TargetMachine and on MCAssembler. Style should be LLVM >> compliant. Apply it with "patch -p0". > > +  // Make sure the code model is set. > +  setCodeModelForStatic(); > > For the JIT, this should be setCodeModelForJIT; it makes a difference > on, for example, x86-64.  I'd also suggest changing the name of the > method appropriately. > > -  llvm::OwningPtr<MCObjectWriter> Writer(getBackend().createObjectWriter(OS)); > -  if (!Wri...
2011 May 06
0
[LLVMdev] Question about linking llvm-mc when porting a new backend
...oweringObjectFileCOFFin libLLVMCodeGen.a(TargetLoweringObjectFileImpl.cpp.o) "llvm::TargetMachine::setCodeModel(llvm::CodeModel::Model)", referenced from: llvm::LLVMTargetMachine::setCodeModelForJIT() in libLLVMCodeGen.a(LLVMTargetMachine.cpp.o) llvm::LLVMTargetMachine::setCodeModelForStatic() in libLLVMCodeGen.a(LLVMTargetMachine.cpp.o) "llvm::TargetMachine::getFunctionSections()", referenced from: llvm::TargetLoweringObjectFileELF::SelectSectionForGlobal(llvm::GlobalValue const*, llvm::SectionKind, llvm::Mangler*, llvm::TargetMachine const&) constin libLLVMCodeG...