search for: cgft_objectfile

Displaying 20 results from an estimated 26 matches for "cgft_objectfile".

2016 Aug 09
2
[LTO] Bypass the integrated assembler ...
Hi Guys , We enabled the LTO on our code base and found that LTO uses the integrated/builtin assembler to emit the final optimized code .O (FileType= CGFT_ObjectFile) . Can we bypass this semantic ,for something like you emit .S file (FileType=CGFT_AssemblyFile), Then we pass this .S file to our native assembler and the linker .....any switch/ options do so ? i.e something like as we have "-no-integrated-as" for clang driver . Currently ,we...
2013 Jan 07
0
[LLVMdev] How to output a .S *and* a .OBJ file?
...argetMachine(TheTriple->getTriple(),"","",Options,Reloc::Default,CodeModel::Default,OLvl)); assert(target.get() && "Could not allocate target machine!"); TargetMachine &Target = *target.get(); /* TargetMachine::CGFT_AssemblyFile TargetMachine::CGFT_ObjectFile */ TargetMachine::CodeGenFileType FileType_S = TargetMachine::CGFT_AssemblyFile; TargetMachine::CodeGenFileType FileType_OBJ = TargetMachine::CGFT_ObjectFile; //if ( DoCompileObj ) { //} else if ( DoCompileS ) { OwningPtr<tool_output_file> Out_S(GetOutputStream(FileType_S, TheTa...
2016 Aug 09
2
[LTO] Bypass the integrated assembler ...
...16 at 04:16, Umesh Kalappa via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote: > Hi Guys , > > We enabled the LTO on our code base and found that LTO uses the > integrated/builtin assembler to emit the final optimized code .O > (FileType= CGFT_ObjectFile) . > > Can we bypass this semantic ,for something like you emit .S file > (FileType=CGFT_AssemblyFile), > > Then we pass this .S file to our native assembler and the linker > .....any switch/ options do so ? > > i.e something like as we have "-no-integrated-as...
2016 Mar 23
2
Help with pass manager
...wp = new TargetLibraryInfoWrapperPass(TLII); passmanager.add(tliwp); module->setDataLayout(tmachine->createDataLayout()); setFunctionAttributes(cpuname, ftrlist, *module); if (RelaxAll.getNumOccurrences() > 0 && FileType != TargetMachine::CGFT_ObjectFile) errs() << "warning: ignoring -mc-relax-all because filetype != obj"; { raw_pwrite_stream *outstream = &objoutstream->os(); SmallVector<char, 0> filebuf; std::unique_ptr<raw_svector_ostream> BOS; if ((FileT...
2016 Mar 24
2
Help with pass manager
...er.add(tliwp); >> >> module->setDataLayout(tmachine->createDataLayout()); >> >> setFunctionAttributes(cpuname, ftrlist, *module); >> >> if (RelaxAll.getNumOccurrences() > 0 && >> FileType != TargetMachine::CGFT_ObjectFile) >> errs() << "warning: ignoring -mc-relax-all because filetype != obj"; >> >> { >> raw_pwrite_stream *outstream = &objoutstream->os(); >> >> SmallVector<char, 0> filebuf; >> std...
2016 Mar 24
0
Help with pass manager
...> > passmanager.add(tliwp); > > module->setDataLayout(tmachine->createDataLayout()); > > setFunctionAttributes(cpuname, ftrlist, *module); > > if (RelaxAll.getNumOccurrences() > 0 && > FileType != TargetMachine::CGFT_ObjectFile) > errs() << "warning: ignoring -mc-relax-all because filetype != obj"; > > { > raw_pwrite_stream *outstream = &objoutstream->os(); > > SmallVector<char, 0> filebuf; > std::unique_ptr<raw_svector_...
2010 Apr 17
0
[LLVMdev] Intro to the MC Project
...ronment part of the triple. (i686-pc-linux-gnu becomes i686-pc-linux-JIT). As the target triple is easy to change, this is currently the solution I use. What do you think ? Do you see another possibilities ? - Currently I'm using the LLVMTargetMachine::addPassesToEmitFile with FileType set to CGFT_ObjectFile, and with the triple environment name hack, I am able to create the correct streamer : if (Triple(TargetTriple).getEnvironmentName().equals("JIT")) { AsmStreamer.reset(createJITStreamer(*Context, *TAB, Out, MCE)); } else { AsmStreamer.reset(createMachOStreamer(*Context,...
2016 Mar 24
2
Help with pass manager
...module->setDataLayout(tmachine->createDataLayout()); >>>> >>>> setFunctionAttributes(cpuname, ftrlist, *module); >>>> >>>> if (RelaxAll.getNumOccurrences() > 0 && >>>> FileType != TargetMachine::CGFT_ObjectFile) >>>> errs() << "warning: ignoring -mc-relax-all because filetype != obj"; >>>> >>>> { >>>> raw_pwrite_stream *outstream = &objoutstream->os(); >>>> >>>> SmallVec...
2016 Mar 24
0
Help with pass manager
...>>> module->setDataLayout(tmachine->createDataLayout()); >>> >>> setFunctionAttributes(cpuname, ftrlist, *module); >>> >>> if (RelaxAll.getNumOccurrences() > 0 && >>> FileType != TargetMachine::CGFT_ObjectFile) >>> errs() << "warning: ignoring -mc-relax-all because filetype != obj"; >>> >>> { >>> raw_pwrite_stream *outstream = &objoutstream->os(); >>> >>> SmallVector<char, 0> fileb...
2016 Mar 24
2
Help with pass manager
...createDataLayout()); >>>>>> >>>>>> setFunctionAttributes(cpuname, ftrlist, *module); >>>>>> >>>>>> if (RelaxAll.getNumOccurrences() > 0 && >>>>>> FileType != TargetMachine::CGFT_ObjectFile) >>>>>> errs() << "warning: ignoring -mc-relax-all because filetype != obj"; >>>>>> >>>>>> { >>>>>> raw_pwrite_stream *outstream = &objoutstream->os(); >>>>>>...
2012 Feb 20
1
[LLVMdev] ARM opcode format
...module. //if (const TargetData *TD = Target.getTargetData()) // PM.add(new TargetData(*TD)); //else // PM.add(new TargetData(&mod)); // Override default to generate verbose assembly. //Target.setAsmVerbosityDefault(true); //if (RelaxAll) { // if (FileType != TargetMachine::CGFT_ObjectFile) // errs() << argv[0] // << ": warning: ignoring -mc-relax-all because filetype != obj"; // else // Target.setMCRelaxAll(true); //} //{ // formatted_raw_ostream FOS(Out->os()); // Ask the target to add backend passes as necessary. //...
2010 Apr 16
2
[LLVMdev] Intro to the MC Project
I do have an opinion, but don't have enough time to comment in much depth. The approximate approach I had in mind sounds like what you describe, though, the JITObjectWriter is the core piece, the other pieces probably fall into place as it becomes obvious if they are needed. It should be pretty straightforward to bring up something which works for running code with no external symbols, if you
2016 Mar 24
0
Help with pass manager
...Layout(tmachine->createDataLayout()); >>>>> >>>>> setFunctionAttributes(cpuname, ftrlist, *module); >>>>> >>>>> if (RelaxAll.getNumOccurrences() > 0 && >>>>> FileType != TargetMachine::CGFT_ObjectFile) >>>>> errs() << "warning: ignoring -mc-relax-all because filetype != obj"; >>>>> >>>>> { >>>>> raw_pwrite_stream *outstream = &objoutstream->os(); >>>>> >>>&...
2017 Dec 06
2
[AMDGPU] Strange results with different address spaces
> On Dec 6, 2017, at 02:28, Haidl, Michael <michael.haidl at uni-muenster.de> wrote: > > The IR goes through a backend agnostic preparation phase that brings it into SSA from and changes the AS from 0 to 1. This sounds possibly problematic to me. The IR should be created with the correct address space to begin with. Changing this in the middle sounds suspect. > After this
2011 Feb 18
2
[LLVMdev] Please add .o writer example to next release
Hi! Is it possible that you add an example how to write a .o with llvm? Just like examples/ModuleMaker but instead of printing to stdout writing a .o file as starting point for the new MC functionality. -Jochen
2011 Feb 18
0
[LLVMdev] Please add .o writer example to next release
Jochen Wilhelmy <j.wilhelmy at arcor.de> writes: > Is it possible that you add an example how to write a .o with llvm? +1
2016 Mar 24
2
Help with pass manager
...;>>> >>>>>>>> setFunctionAttributes(cpuname, ftrlist, *module); >>>>>>>> >>>>>>>> if (RelaxAll.getNumOccurrences() > 0 && >>>>>>>> FileType != TargetMachine::CGFT_ObjectFile) >>>>>>>> errs() << "warning: ignoring -mc-relax-all because filetype != obj"; >>>>>>>> >>>>>>>> { >>>>>>>> raw_pwrite_stream *outstream = &objoutstream->o...
2016 Mar 24
0
Help with pass manager
...>>>>>>> >>>>>>> setFunctionAttributes(cpuname, ftrlist, *module); >>>>>>> >>>>>>> if (RelaxAll.getNumOccurrences() > 0 && >>>>>>> FileType != TargetMachine::CGFT_ObjectFile) >>>>>>> errs() << "warning: ignoring -mc-relax-all because filetype != obj"; >>>>>>> >>>>>>> { >>>>>>> raw_pwrite_stream *outstream = &objoutstream->os(); >>&gt...
2016 Mar 24
0
Help with pass manager
...>>>>>>>>> setFunctionAttributes(cpuname, ftrlist, *module); >>>>>>>>> >>>>>>>>> if (RelaxAll.getNumOccurrences() > 0 && >>>>>>>>> FileType != TargetMachine::CGFT_ObjectFile) >>>>>>>>> errs() << "warning: ignoring -mc-relax-all because filetype != obj"; >>>>>>>>> >>>>>>>>> { >>>>>>>>> raw_pwrite_stream *outstream = &ob...
2016 Mar 24
2
Help with pass manager
...gt;>>>>>> setFunctionAttributes(cpuname, ftrlist, *module); >>>>>>>>>> >>>>>>>>>> if (RelaxAll.getNumOccurrences() > 0 && >>>>>>>>>> FileType != TargetMachine::CGFT_ObjectFile) >>>>>>>>>> errs() << "warning: ignoring -mc-relax-all because filetype != obj"; >>>>>>>>>> >>>>>>>>>> { >>>>>>>>>> raw_pwrite_stream *out...