Displaying 20 results from an estimated 27 matches for "assemblyannotationwrit".
Did you mean:
assemblyannotationwriter
2008 Nov 18
2
[LLVMdev] print out instruction
...what's the problem?
Instruction* inst;
...
inst-print(cerr);
testbuild.cpp:178: error: no matching function for call to
'llvm::Instruction::print(llvm::OStream&)'
/x/pchsu/llvm/llvm-2.4/include/llvm/Value.h:83: note: candidates are: void
llvm::Value::print(std::ostream&, llvm::AssemblyAnnotationWriter*) const
/x/pchsu/llvm/llvm-2.4/include/llvm/Value.h:84: note: void
llvm::Value::print(llvm::raw_ostream&, llvm::AssemblyAnnotationWriter*)
const
Po-Chun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-de...
2014 Aug 29
5
[LLVMdev] HELP! PLEASE!
...it's so hard to even get the print function to work,
I just feel like a bunch of useless garbage.
Please help,
I feel terrible.
I haven't cried this much in years.
I can't get Module to print,
there are no examples I can find on the internet.
And I can't get a working instance of AssemblyAnnotationWriter.
I don't understand why it's so hard to do.
Am I really just too stupid?
This is so basic it is beneath your notice.
I don't get it, and it has me tasting salty tears.
2012 Nov 01
0
[LLVMdev] Adding comments to generated IR
...mmand, or block, emit a
> comment.
>
> I see the ability to add meta/debug data. Could that somehow be used to
> get comments into the generated IR? Or is there some other mechanism?
>
> I want to do this to help me diagnose problems in the IR that I am
> generating.
check out AssemblyAnnotationWriter.h
Ciao, Duncan.
2012 Nov 01
3
[LLVMdev] Adding comments to generated IR
I'm using createPrintModulePass to produce the IR of a created Module.
I'm wondering if there is some way to insert/attach comments to the
generated output. That is, prior to a given command, or block, emit a
comment.
I see the ability to add meta/debug data. Could that somehow be used to
get comments into the generated IR? Or is there some other mechanism?
I want to do this to help me
2018 Mar 23
2
Dump Module IR with SCEV as comment
Hello,
Is there a way to dump the Module IR with the SCEV as comment at the end of
each line?
The -analyze or -debug-pass is not printed on the IR itself.
Maybe through the DiagnosticInfo?
--
*Alexandre Isoard*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180322/e178b4c8/attachment.html>
2018 Mar 23
0
Dump Module IR with SCEV as comment
On 3/22/2018 6:29 PM, Alexandre Isoard via llvm-dev wrote:
> Hello,
>
> Is there a way to dump the Module IR with the SCEV as comment at the
> end of each line?
AssemblyAnnotationWriter exists, but I don't think anyone has hooked it
up to SCEV, specifically.
-Eli
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
2013 Jul 14
5
[LLVMdev] Analysis of polly-detect overhead in oggenc
...odule const&, bool) ()
#1 0x08f76ebe in llvm::TypePrinting::incorporateTypes(llvm::Module const&) ()
#2 0x08f76fc9 in llvm::AssemblyWriter::init() ()
#3 0x08f77176 in llvm::AssemblyWriter::AssemblyWriter(llvm::formatted_raw_ostream&, llvm::SlotTracker&, llvm::Module const*, llvm::AssemblyAnnotationWriter*) ()
#4 0x08f79d1a in llvm::Value::print(llvm::raw_ostream&, llvm::AssemblyAnnotationWriter*) const ()
#5 0xb7c1d044 in polly::ScopDetection::isValidInstruction(llvm::Instruction&, polly::ScopDetection::DetectionContext&) const ()
from /home/star/llvm/llvm_build/tools/polly/Relea...
2012 Nov 01
2
[LLVMdev] Adding comments to generated IR
On 01/11/12 09:16, Duncan Sands wrote:
> check out AssemblyAnnotationWriter.h
I've got some static data being output, but now I'm unsure on how I
should structure the actual strings I wish to write. For example, on the
emitFunctionAnnot I get a Function object, but I don't see any API which
we set/get user or meta data for a function.
(Note, obviously I can...
2012 Oct 18
0
[LLVMdev] Loop vectorizer
...practical ones:
1) I don't need to to maintain an additional instruction->properties
mapping and I don't need a map lookup every time I want to check if a
block/instruction has a certain property (which happens quite often).
2) For debugging purposes, I don't need to write my own
AssemblyAnnotationWriter but all information is directly visible in the IR.
However, other approaches may of course be viable. My last
implementation kept its own state, but the metadata approach feels a lot
more convenient (even though my block and argument metadata patch was
refused ;) ).
>> Generally, it wo...
2013 Jul 14
0
[LLVMdev] Analysis of polly-detect overhead in oggenc
...; #1 0x08f76ebe in llvm::TypePrinting::incorporateTypes(llvm::Module const&)
> ()
> #2 0x08f76fc9 in llvm::AssemblyWriter::init() ()
> #3 0x08f77176 in
> llvm::AssemblyWriter::AssemblyWriter(llvm::formatted_raw_ostream&,
> llvm::SlotTracker&, llvm::Module const*, llvm::AssemblyAnnotationWriter*) ()
> #4 0x08f79d1a in llvm::Value::print(llvm::raw_ostream&,
> llvm::AssemblyAnnotationWriter*) const ()
> #5 0xb7c1d044 in
> polly::ScopDetection::isValidInstruction(llvm::Instruction&,
> polly::ScopDetection::DetectionContext&) const ()
> from
> /home/sta...
2012 Oct 17
2
[LLVMdev] Loop vectorizer
----- Original Message -----
> From: "Ralf Karrenberg" <Chareos at gmx.de>
> To: llvmdev at cs.uiuc.edu
> Sent: Wednesday, October 17, 2012 2:13:08 AM
> Subject: Re: [LLVMdev] Loop vectorizer
>
> Hi everybody,
>
> On 10/17/12 12:32 AM, Hal Finkel wrote:
> >>> Do you have a plan for xforms to increase the amount of
> >>>
2019 Dec 10
2
[RFC] Displaying source variable locations in llvm-objdump
...y mind ever since to figure out if some portion of that made
sense to upstream, if any. And also to figure out how to parse and show the
variable info along it. So even if none of this PR ends up in the libllvm
library, I'd still plan to someday figure out which bits of this PR to copy
into our AssemblyAnnotationWriter to show the variable info in our
front-end also.
But if it does get put in libLLVM, this capability seems like it could be
useful for the other instruction printers too (e.g. IR and MIR). So I'd be
interested to hear if you have any thoughts on what might make sense in a
library, and any oth...
2009 Jul 14
0
[LLVMdev] Profiling in LLVM Patch Followup 1
...ion 74697)
> +++ tools/llvm-prof/llvm-prof.cpp (working copy)
> + class LoaderInterface : public ModulePass {
> + ProfileInfo *PI;
I renamed this class, and moved the main printing functionality to its
run method. This avoids the member state.
> class ProfileAnnotator : public AssemblyAnnotationWriter {
> - std::map<const Function *, unsigned> &FuncFreqs;
> - std::map<const BasicBlock*, unsigned> &BlockFreqs;
> - std::map<ProfileInfoLoader::Edge, unsigned> &EdgeFreqs;
> + ProfileInfo *PI;
I would advocate making this a reference instead o...
2009 Jul 02
1
[LLVMdev] Profiling in LLVM Patch Followup 1
Hi,
this is the first in a series of patches to cleanup and improve the LLVM Profiling Infrastructure.
First and foremost this patch removes duplicate functionality from ProfileInfoLoader and ProfileInfo:
The ProfileInfoLoader performed not only the loading of the profile information but also some synthesis of block and function execution counts from edge profiling information. Since the
2013 Jul 14
0
[LLVMdev] Analysis of polly-detect overhead in oggenc
...odule const&, bool) ()
#1 0x08f76ebe in llvm::TypePrinting::incorporateTypes(llvm::Module const&) ()
#2 0x08f76fc9 in llvm::AssemblyWriter::init() ()
#3 0x08f77176 in llvm::AssemblyWriter::AssemblyWriter(llvm::formatted_raw_ostream&, llvm::SlotTracker&, llvm::Module const*, llvm::AssemblyAnnotationWriter*) ()
#4 0x08f79d1a in llvm::Value::print(llvm::raw_ostream&, llvm::AssemblyAnnotationWriter*) const ()
#5 0xb7c1d044 in polly::ScopDetection::isValidInstruction(llvm::Instruction&, polly::ScopDetection::DetectionContex!
t&) const ()
from /home/star/llvm/llvm_build/tools/polly/Re...
2013 Jul 14
2
[LLVMdev] Analysis of polly-detect overhead in oggenc
...llvm::TypePrinting::incorporateTypes(llvm::Module const&)
>> ()
>> #2 0x08f76fc9 in llvm::AssemblyWriter::init() ()
>> #3 0x08f77176 in
>> llvm::AssemblyWriter::AssemblyWriter(llvm::formatted_raw_ostream&,
>> llvm::SlotTracker&, llvm::Module const*, llvm::AssemblyAnnotationWriter*) ()
>> #4 0x08f79d1a in llvm::Value::print(llvm::raw_ostream&,
>> llvm::AssemblyAnnotationWriter*) const ()
>> #5 0xb7c1d044 in
>> polly::ScopDetection::isValidInstruction(llvm::Instruction&,
>> polly::ScopDetection::DetectionContext&) const ()
>>...
2011 Aug 23
2
[LLVMdev] write IR on file
hi
how can i write IRinstruction on a file.txt? when i use {for(inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I,count++) IRcodefile << std::basic_ostream(*I) <<"\n" } i get error.
is there any way that i can write it on file?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2012 Nov 01
0
[LLVMdev] Adding comments to generated IR
Hi edA-qa mort-ora-y,
On 01/11/12 10:57, edA-qa mort-ora-y wrote:
> On 01/11/12 09:16, Duncan Sands wrote:
>> check out AssemblyAnnotationWriter.h
>
> I've got some static data being output, but now I'm unsure on how I
> should structure the actual strings I wish to write. For example, on the
> emitFunctionAnnot I get a Function object, but I don't see any API which
> we set/get user or meta data for a function....
2015 Aug 05
2
[BUG] Incorrect ASCII escape characters on Mac
On Wed, 2015-08-05 at 10:02 -0400, Ramkumar Ramachandra wrote:
>
> - at 5 = internal global [10 x i8] c"\22\D0\12\F4!\00\15\F9\EC\E1"
> - at 6 = internal global [10 x i8] c"\D0\19\FB+\FD\F8#\03\E2\11"
> + at 5 = internal global [10 x i8] c"\22Ð\12ô!\00\15ùìá"
> + at 6 = internal global [10 x i8] c"Ð\19û+ýø#\03â\11"
>
> The diff
2009 Jul 22
4
[LLVMdev] Profiling in LLVM Patch Followup 1
...lvm-prof.cpp (working copy)
>
>> + class LoaderInterface : public ModulePass {
>> + ProfileInfo *PI;
>
> I renamed this class, and moved the main printing functionality to its
> run method. This avoids the member state.
>
>> class ProfileAnnotator : public AssemblyAnnotationWriter {
>> - std::map<const Function *, unsigned> &FuncFreqs;
>> - std::map<const BasicBlock*, unsigned> &BlockFreqs;
>> - std::map<ProfileInfoLoader::Edge, unsigned> &EdgeFreqs;
>> + ProfileInfo *PI;
>
> I would advocate making...