Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] Errata for "LLVM Assembly Language" docs (llvm.org/docs/LangRef.html)"
2007 Jun 08
1
[LLVMdev] mistake in documentation? [http://llvm.org/docs/LangRef.html]
Hi,
For the section regarding Functions, the doc says:
"The first basic block in a program is special in two
ways: it is immediately executed on entrance to the
function, and it is not allowed to have predecessor
basic blocks"
Is this really supposed to say: "The first basic block
in a functionis special in two ways:" ?
Thanks,
Ivan
---------------------
Ivan Novick
2012 Jul 26
0
[LLVMdev] [llvm-commits] [llvm] r160791 - in /llvm/trunk: docs/LangRef.html include/llvm/Intrinsics.td lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
On Jul 26, 2012, at 12:57 PM, Rafael EspĂndola <rafael.espindola at gmail.com> wrote:
>> +<p>This function returns the same values as the libm <tt>floor</tt> functions
>> + would, and handles error conditions in the same way.</p>
>
> Why the intrinsic then?
So that it's possible to access the ISD::FFLOOR SDNode without having to enable a
2013 Nov 27
0
[LLVMdev] Bug in Language Reference? %0 versus %1 as starting index.
(gah, this turned into a huge digression, sorry)
The implicit numbering of BB's seems to be a pretty frequent issue for
people. Surprisingly, the issue boils down to simply changing the IR asm
(.ll file) syntax so that it can have "unnamed BB's" in a recognizable way
that fits in with how unnamed values work (the asmprinter makes an effort
to print a comment with the BB number,
2019 Mar 20
2
[cfe-dev] [lldb-dev] [GitHub] RFC: Enforcing no merge commit policy
It sounds like we need to get someone from the Foundation (chandlerc@,
lattner@, tanya@, someone else?) to reach out to them offline about this.
On Wed, Mar 20, 2019 at 11:23 AM Arthur O'Dwyer <arthur.j.odwyer at gmail.com>
wrote:
> On Wed, Mar 20, 2019 at 2:19 PM Tom Stellard via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
>> On 03/20/2019 10:41 AM, Zachary
2013 Nov 27
0
[LLVMdev] Bug in Language Reference? %0 versus %1 as starting index.
On Tue, Nov 26, 2013 at 9:58 PM, Mikael Lyngvig <mikael at lyngvig.org> wrote:
> Thanks for the lecture :) But I was not planning on changing a single
> line in LLVM/Clang. I stick to the documentation until I've learned to
> swim, perhaps even forever. Ah, now I see. You thought I meant "should I
> modify the code to do this or that." I only meant to change
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
Hi all,
Running LLVM 3.4 to create a custom pass for OpenCL transformations. I am attempting to GEP into a struct using IRBuilder's CreateStructGEP, but I keep getting this assert:
aoc: ../../../../../../compiler/llvm/include/llvm/Instructions.h:703: llvm::Type* llvm::checkGEPType(llvm::Type*): Assertion `Ty && "Invalid GetElementPtrInst indices for type!"' failed.
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
cB->getType()->getPointerElementType()->dump();
gives:
%struct.RB = type opaque2189 x_idx = builder.CreateStructGEP(cB, 0);
cB->dump()
gives:
%struct.RB addrspace(1)* %cB
$1 = void
//To undo confusion, the last cB is the function arg name. For this example I unfortunately chose the same name for my argument Value* as the argument name.
//Also one correction. I am running
2013 Apr 09
0
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
Hi,
On 09/04/13 10:16, Dong Chen wrote:
> hello guys:
> I am in trouble with get the identifies of the unnamed temporaries from the
> instruction of LLVM IR.
this is a FAQ. Most names in the IR are just there to make it easier to read
and can safely be removed. You can't rely on instructions having names, and as
you saw often they do not have a name. Even if they start off with a
2013 Nov 27
2
[LLVMdev] Bug in Language Reference? %0 versus %1 as starting index.
Thanks for the lecture :) But I was not planning on changing a single line
in LLVM/Clang. I stick to the documentation until I've learned to swim,
perhaps even forever. Ah, now I see. You thought I meant "should I modify
the code to do this or that." I only meant to change the documentation.
Please refer to the patch I've sent on LLVM-commits. That's about what I
had
2013 Apr 09
2
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
hello guys:
I am in trouble with get the identifies of the unnamed temporaries from the
instruction of LLVM IR.
for example:
instruction: %4 = mul nsw i32 %1, %width
unnamed temporaries: %4, %1
how to get them?
I have tried several iterators(op_iterator,value_op_iterator) and
getOperand(int) function,but none of them works.
does anyone know how to get it? thanks very much
--
View this message
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
If I do M.dump(), at the top of the output I have:
%struct.RB = type opaque
Further down I have:
@.str18 = internal addrspace(2) constant [13 x i8] c"RB_t*\00"
However nowhere does it dump the full struct type when I call "M.dump()". I have it explicitly defined above the kernel in the kernel file, but LLVM doesn't seem to pick it up.
Opaque is a placeholder until it
2016 May 26
1
Potential ambiguity in the grammar of LLVM IR assembly
Hello Tim,
Thank you for getting back to me.
The language grammar as defined by the LLVM Language Reference Manual
[1] does not include the details of the LLVM IR parser reference
implementation.
The following extract from "lib/AsmParser/LLParser.cpp" illustrates that
unnamed globals are allowed [2].
> /// ParseUnnamedGlobal:
> /// OptionalVisibility (ALIAS | IFUNC) ...
2013 Nov 25
0
[LLVMdev] Language Reference bug?
On Sun, Nov 24, 2013 at 10:19 PM, Mikael Lyngvig <mikael at lyngvig.org> wrote:
> Hi,
>
> The language reference uses "::" many places where it seems it should be
> using ".. code-block:: llvm". The result is that Sphinx does not colorize
> these samples.
>
> Should I fix this? Or is it purposeful?
>
Could you give an example of what you are
2011 Oct 05
0
[LLVMdev] collect end line number for scope
Pankaj,
If you want to decorate MachineInstrs then for the end of scope you're not looking at "}" but instead you're looking at _last_ machine instruction in that scope. Now, if you want to find out start and end MachineInstrs for a lexical scope (and corresponding line numbers) then see CodeGen/LexicalScopes pass. It collects lexical scope information and maps MIs to respective
2013 Nov 27
0
[LLVMdev] Bug in Language Reference? %0 versus %1 as starting index.
On Tue, Nov 26, 2013 at 10:35 PM, Mikael Lyngvig <mikael at lyngvig.org> wrote:
> Without ANY intent of offending anybody, I simply don't like C++. I did
> code in it for some 12 years back from 1990 to 2002, but then I left it
> behind with a feeling of happiness. The main reason I am _trying_ to make
> a new language is that I hope to one day come up with something that
2014 Aug 20
2
[LLVMdev] LLVM CreateStructGEP type assert error
Sure, it is the Rodinia 2.4 Hotspot benchmark OpenCL kernel (not my kernel), with the addition of my struct as the last argument in the kernel function.
//------- kernel file start -------------------------------
#define BLOCK_SIZE 16
//dlowell's type
#define BUFFER_LEN 0x100000
typedef struct RB{
unsigned int x;
unsigned int y;
int z[BUFFER_LEN];
unsigned int xx[BUFFER_LEN];
2008 Sep 02
0
[LLVMdev] CloneBasicBlock and Unnamed Temporaries
Hi,
I was trying to use CloneBasicBlock() (in Cloning.h) to clone basic
blocks in one of my transform passes. For example, when I have a basic
block like:
bb1: ; preds = %bb
load i32* %i, align 4 ; <i32>:11 [#uses=2]
load i32* %n_addr, align 4 ; <i32>:12 [#uses=2]
icmp slt i32 %11, %12 ; <i1>:13 [#uses=2]
cloning it gives something like:
bb1_clone: ; preds = %entry
2019 Mar 20
5
[cfe-dev] [lldb-dev] [GitHub] RFC: Enforcing no merge commit policy
Excuse my ignorance (I'm not great with Git) but how would it differ for workflows of people
who use a Git repository for local work but still use `svn up + patch + svn commit <list of
files>` to actually land post CR or for NFC patches, while resolving conflicts during a
pull into a local (non-trunk) branch manually, after the eventual full switch to GitHub?
I'm aware that SVN
2013 Apr 09
2
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
hi, Duncan Sands:
thanks for your reply old friend.
the reason why I want to get the unnamed value is that I am doing some
analysis based on the IR code. And IR is in the form of SSA(static single
assignment). so i need to get the operands of each instructions including a
lot of instructions like this (%4 = mul nsw i32 %1, %width).
the unnamed values are the connection of instructions, if i
2008 Apr 30
2
[LLVMdev] RFC: Add tail call optimization documentation in LangRef.html
The attached patch adds documentation of tail call optimization to
LangRef.html below Calling Convetions - fastcc. Should i apply it?
regards arnold