Displaying 14 results from an estimated 14 matches for "featuresstr".
2009 Mar 08
2
[LLVMdev] addPassesToEmitFile
...ut a way to output
the assembly code of my JIT generated code to a string, so I could use
it to read it on the screen. I came up with this solution:
std::string Err;
const llvm::TargetMachineRegistry::entry* _arch =
llvm::TargetMachineRegistry::getClosestTargetForJIT(Err);
std::string FeaturesStr;
llvm::TargetMachine* target(_arch->CtorFn(*_module, FeaturesStr));
assert(target && "Could not allocate target machine!");
std::ostringstream os;
target->addPassesToEmitFile(*_passManager, os,
llvm::TargetMachine::AssemblyFile, true);
target->addPas...
2009 Mar 08
0
[LLVMdev] addPassesToEmitFile
...y code of my JIT generated code to a string, so I could use
> it to read it on the screen. I came up with this solution:
>
> std::string Err;
> const llvm::TargetMachineRegistry::entry* _arch =
> llvm::TargetMachineRegistry::getClosestTargetForJIT(Err);
>
> std::string FeaturesStr;
> llvm::TargetMachine* target(_arch->CtorFn(*_module, FeaturesStr));
> assert(target && "Could not allocate target machine!");
>
> std::ostringstream os;
>
> target->addPassesToEmitFile(*_passManager, os,
> llvm::TargetMachine::AssemblyFile,...
2009 Mar 09
1
[LLVMdev] addPassesToEmitFile
...d code to a string, so I could use
> > it to read it on the screen. I came up with this solution:
>
> > std::string Err;
> > const llvm::TargetMachineRegistry::entry* _arch =
> > llvm::TargetMachineRegistry::getClosestTargetForJIT(Err);
>
> > std::string FeaturesStr;
> > llvm::TargetMachine* target(_arch->CtorFn(*_module, FeaturesStr));
> > assert(target && "Could not allocate target machine!");
>
> > std::ostringstream os;
>
> > target->addPassesToEmitFile(*_passManager, os,
> > llvm::Tar...
2008 May 28
1
[LLVMdev] Asm output while executing
...already exists for this
function!"' failed.
**********
The code I use:
/// The asm code output
std::string Err;
const llvm::TargetMachineRegistry::entry* MArch =
llvm::TargetMachineRegistry::getClosestStaticTargetForModule(*_module,Err);
std::string FeaturesStr;
std::auto_ptr<llvm::TargetMachine>target(MArch->CtorFn(*_module,FeaturesStr));
assert(target.get() && "Could not allocate target machine!");
llvm::TargetMachine &Target = *target.get();
llvm::FunctionPassManager Passes(new
llvm::ExistingModul...
2013 Jan 31
0
[LLVMdev] Getting command line options to affect subtarget features
On Thu, 2013-01-31 at 11:29 -0600, Bill Schmidt wrote:
> On Thu, 2013-01-31 at 11:23 -0600, Bill Schmidt wrote:
> > On Thu, 2013-01-31 at 10:17 -0600, Bill Schmidt wrote:
> > >
> > > On Thu, 2013-01-31 at 09:42 -0600, Hal Finkel wrote:
> > > > ----- Original Message -----
> > > > > From: "Bill Schmidt" <wschmidt at
2016 May 21
1
Using an MCStreamer Directly to produce an object file?
...ame));
assert(MRI && "Unable to create target register info!");
std::unique_ptr<MCAsmInfo> MAI(TheTarget->createMCAsmInfo(*MRI,
TripleName));
assert(MAI && "Unable to create target asm info!");
std::string MCPU("generic");
std::string FeaturesStr("");
MCObjectFileInfo MOFI;
MCContext Ctx(MAI.get(), MRI.get(), &MOFI);
MOFI.InitMCObjectFileInfo(TheTriple, llvm::Reloc::Model::PIC_,
llvm::CodeModel::Model::Default, Ctx);
std::unique_ptr<MCInstrInfo> MCII(TheTarget->createMCInstrInfo());
std::unique_ptr<MC...
2009 Mar 17
0
[LLVMdev] Printing x86 ASM for Function
Dear Maxime,
Nyx wrote:
> Hello,
>
> I would like to know how to go about printing the x86 assembly output for a
> compiled function (I'm using the JIT). I saw there is a X86IntelAsmPrinter
> on doxygen. However, it takes several arguments I don't know how to fill in.
> Is there a helper function to create such a pass? Once I have the pass
> created, do I just add it
2009 Mar 16
2
[LLVMdev] Printing x86 ASM for Function
Hello,
I would like to know how to go about printing the x86 assembly output for a
compiled function (I'm using the JIT). I saw there is a X86IntelAsmPrinter
on doxygen. However, it takes several arguments I don't know how to fill in.
Is there a helper function to create such a pass? Once I have the pass
created, do I just add it to a FunctionPassManager?
Thank you for your time,
-
2013 Jan 31
2
[LLVMdev] Getting command line options to affect subtarget features
On Thu, 2013-01-31 at 11:23 -0600, Bill Schmidt wrote:
> On Thu, 2013-01-31 at 10:17 -0600, Bill Schmidt wrote:
> >
> > On Thu, 2013-01-31 at 09:42 -0600, Hal Finkel wrote:
> > > ----- Original Message -----
> > > > From: "Bill Schmidt" <wschmidt at linux.vnet.ibm.com>
> > > > To: llvmdev at cs.uiuc.edu
> > > > Sent:
2015 Jan 27
7
[LLVMdev] Embedding cpu and feature strings into IR and enabling switching subtarget on a per function basis
I've been investigating what is needed to ensure command line options are
passed to the backend codegen passes during LTO and enable compiling
different functions in a module with different command line options (see
the links below for previous discussions).
http://thread.gmane.org/gmane.comp.compilers.llvm.devel/78855
http://thread.gmane.org/gmane.comp.compilers.llvm.devel/80456
The command
2016 May 23
0
Using an MCStreamer Directly to produce an object file?
2017 Aug 22
5
[RFC] mir-canon: A new tool for canonicalizing MIR for cleaner diffing.
Patch for review.
On Mon, Aug 21, 2017 at 11:45 PM Puyan Lotfi <puyan.lotfi.llvm at gmail.com>
wrote:
> Ping.
>
> Still working on preparing code for review. Will have a patch for review
> ready in the coming days.
>
> PL
>
> On Tue, Aug 15, 2017 at 12:06 PM Puyan Lotfi <puyan.lotfi.llvm at gmail.com>
> wrote:
>
>> Hi,
>>
>>
>>
2014 Dec 09
2
[LLVMdev] [RFC] Embedding command line options in bitcode (PR21471)
...t creation as an attribute to Function, but forget to add it to
the key that is used to search SubtargetMap, it can incorrectly return a
cached subtarget when it should be creating a new one. Would it be better
to generate a string key from the whole AttributeSet of the function (along
with CPU and FeaturesStr and other options in TargetOptions, if necessary)
and use it to do the lookup? The downside of course is that the key can get
long as attributes that are not needed for subtarget creation are used to
generate the key.
- My understanding is that the only target currently using per-function
subtarge...
2014 Dec 03
2
[LLVMdev] [RFC] Embedding command line options in bitcode (PR21471)
On Tue, Dec 2, 2014 at 4:38 PM, Eric Christopher <echristo at gmail.com> wrote:
>
>
> On Tue Dec 02 2014 at 4:31:43 PM Akira Hatanaka <ahatanak at gmail.com>
> wrote:
>
>> On Tue, Dec 2, 2014 at 3:21 PM, Eric Christopher <echristo at gmail.com>
>> wrote:
>>
>>> On Mon Dec 01 2014 at 4:22:15 PM Bob Wilson <bob.wilson at apple.com>