Displaying 20 results from an estimated 110 matches similar to: "[LLVMdev] An array of instructions?"
2015 Oct 05
2
Swift to IR, generates wrong IR
Hi,
2015-10-05 11:49 GMT+02:00 Rinaldini Julien via llvm-dev
<llvm-dev at lists.llvm.org>:
> Sorry, the error is (the previous one was from Apple’s lli):
>
> Documents/strong.codes/code/build/obfuscator-llvm/bin/opt: test.ll:57:203: error: expected comma after getelementptr's type
> @_METACLASS_DATA__TtC4test13TipCalculator = private constant { i32, i32, i32, i32, i8*, i8*,
2007 May 17
8
[LLVMdev] Antw.: 2.0 Pre-release tarballs online
Hi,
Op 15-mei-07, om 10:23 heeft Tanya M. Lattner het volgende geschreven:
1) Download llvm-gcc4 binary and llvm. Compile and run make check.
I did a debug build on OSX 10.4.9 and everything went fine.
Results of "make check" (see ppc.log):
=== Summary ===
# of expected passes 1630
# of unexpected failures 21
# of expected failures 2
2015 Oct 05
2
Swift to IR, generates wrong IR
Hi,
I have a simple swift code from which I generate IR code with ‘swiftc test.swift -emit-ir -o test.ll'
When I try to run the .ll file or apply optimization with opt, I get errors like this one:
lli: test.ll:548:110: error: expected instruction opcode
%9 = cmpxchg i64* bitcast (%swift.type*** @field_type_vector_TipCalculator to i64*), i64 0, i64 %8 seq_cst seq_cst
[LLVMdev] A question about GetElementPtr common subexpression elimination/loop invariant code motion
2007 Jan 29
0
[LLVMdev] A question about GetElementPtr common subexpression elimination/loop invariant code motion
On Mon, 29 Jan 2007, Gil Dogon wrote:
> Now the problem with this code , is that the calculation of the address
> mat[i][j] which is done by the (two) getelementptr instructions
> is quite expensive (involving at least two multiplications and one
> addition) hence it actualy should have been moved out of the inner loop.
Right.
> and not twice. Anyway this is just a syptom of a
[LLVMdev] A question about GetElementPtr common subexpression elimination/loop invariant code motion
2007 Jan 29
2
[LLVMdev] A question about GetElementPtr common subexpression elimination/loop invariant code motion
Hello.
I have a problem which is quite basic for array optimization, amd I
wonder whether I am missing something, but I could not
find the LLVM pass that does it.
Consider the following code snippet:
int test()
{
int mat[7][7][7];
int i,j,k,sum=0;
for(i=0;i<7;i++){
for(j=0;j<7;j++){
for(k=0;k<7;k++){
sum+=mat[i][j][k]^mat[i][j][k^1];
}
}
}
return
2007 May 18
0
[LLVMdev] Antw.: 2.0 Pre-release tarballs online
> On Slackware 10.2 (GCC 3.3.6), I got an error during a debug build with the
> header files using uintptr_t (not recognised as a type). Putting "#include
> <stdint.h>" in include/llvm/BasicBlock.h (llvm) and in
> "include/llvm/ValueSymbolTable.h" (frontend) resolved this.
Ok. This is now fixed on the release branch. Thanks!
> Also, I got linking
2013 Nov 21
0
[LLVMdev] CodeExtractor status?
On 18/11/13 21:43, Brandon Holt wrote:
> I am working on a pass to extract small regions of code to run
> somewhere else (different node in a cluster). Basically what I need is
> the ability to isolate a region of code, get its inputs and outputs,
> create a new function with the extracted code and code aggregating the
> in and out parameters as structs that can be cast for a
2013 Nov 18
2
[LLVMdev] CodeExtractor status?
I am working on a pass to extract small regions of code to run somewhere else (different node in a cluster). Basically what I need is the ability to isolate a region of code, get its inputs and outputs, create a new function with the extracted code and code aggregating the in and out parameters as structs that can be cast for a “void*”-based interface.
It looks like the CodeExtractor
2013 Nov 21
2
[LLVMdev] CodeExtractor status?
Hi Pablo,
Your tool sounds really cool. It goes well beyond what I’m trying to do, which is really just extracting blocks of code, serializing and sending the inputs over to another core, running the code over there, and then sending the outputs back to the original caller (like an automatic RPC). So it sounds like most of the things your tool can do would be overkill for my use case.
What I’ve
2011 Jan 27
2
[LLVMdev] Passing command line arguments to optimization passes
Hi all,
I was wondering if there's any way to pass command line arguments to LLVM
optimization passes when run through the opt tool.
For example, suppose I register called MyPass, then I want to run
opt -load libMyPass.so -MyPass 3 < input.bc
and have "3" be available to MyPass as a kind of argv argumnet through some
method.
Or does it take a major rewrite of the opt tool
2011 Jan 27
2
[LLVMdev] Passing command line arguments to optimization passes
A follow-up question:
Is there a way to make different passes accept one command line option that
will affect all of them?
For example, I'd like to have a -optStrength parameter, that can be given to
all of my passes simultaneously.
Thanks a lot,
Guy
Arnaud Allard de Grandmaison wrote:
>
> Hi Harel,
>
> Several existing passes can take command line arguments. Have a look at
2011 Jan 27
0
[LLVMdev] Passing command line arguments to optimization passes
Hi Harel,
Several existing passes can take command line arguments. Have a look at lib/Transforms/Scalar/LoopUnrollPass.cpp for example. Its command line arguments are defined using the cl::opt objects.
Best regards,
--
Arnaud de Grandmaison
________________________________
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Harel Cain
Sent: Thursday, January
2009 Jul 14
3
[LLVMdev] Unexpected failures in the DejaGNU test collection
Hi all,
When using "make check" with the DejaGNU test collection, I encounter
two unexpected failures (they seem to be closely related).
My question: are they well known, and if so what's the problem and how
can I fix it?
This is the error text I get:
FAIL: /var/data/common/trunk/llvm/test/FrontendC/2008-05-19-AlwaysInline.c
Failed with exit(1) at line 1
while running:
2011 Jan 24
2
[LLVMdev] How to create an IntegerType of the native word size
Hi all,
I couldn't find any reasonable way to create the IntegerType that would
match, say, intptr_t, that is the native word size of the machine I'm
building on. More accurately defined, when compiling on a 64 bit Mac OS
machine I want it to be Int64Ty, but if for example I'm using the "-arch
i386" command line option on that machine during compilation, I want it to
be
2010 Jun 22
4
Local channel usage
Hi All,
I?m trying to do ?things? after my Dial application terminates (e.g. play IVR to called party, calling party, etc.). I?m trying to use the local channel for this purpose but so far with no success. I?m using 1.6.1.18 and this is my extensions.conf:
[Internal]
exten => _22,1,Dial(Local/${EXTEN}@CW/n) ; 22 is test number
exten => _22,2,Noop(After Hangup)
[CW]
exten =>
2012 Mar 04
3
[LLVMdev] Passing arguments to opt via clang
Thanks, but I'm not sure I understand. I see no such flag in clang 2.9 nor
couldn't I find any mention of it. What does it do?
Harel Cain
On Sun, Mar 4, 2012 at 15:03, Anton Korobeynikov <anton at korobeynikov.info>wrote:
> > In the good old llvmc, the -Wo flag could be used to pass arguments to
> the
> > optimizer. Is there a similar mechanism anywhere for clang?
2010 Nov 01
1
MoH and stuch channels
Hi All,
I would like to separate the media traffic from the signalling.
Can Asterisk send and receive media (rtp) traffic from a secondary network interface?
Thanks,
Harel
________________________________
This electronic message and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named
2011 Jan 28
0
[LLVMdev] Passing command line arguments to optimization passes
You could make the cl:opt object visible outside one of your passes, and use it in your other passes : in other words, it is a global variable shared between several files.
Best regards,
--
Arnaud de Grandmaison
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of guyadini
Sent: Thursday, January 27, 2011 12:38 PM
To: llvmdev at
2010 Dec 05
1
[LLVMdev] Weak private linkage for Objective C
Hi all,
I've been subscribed to this list on-and-off and always found it very
helpful.
I'm facing the problem of compiling a project in Objective C with LLVM in a
Darwin environment. There is a certain Objective C protocol that appears in
two .m files, and so the corresponding l_OBJC_PROTOCOL and
l_OBJC_LABEL_PROTOCOL symbols appear in both .o files.
The problem is that while these
2017 Jun 04
2
[newbie] trouble with global variables and CreateLoad/Store in JIT
Emitting calls to these functions (written in an .ll file linked in) works
fine, and does the right thing.
%Any = type { i8*, i32 }
define dllexport void @setGlobal(%Any* %ptr, %Any %value) {
store %Any %value, %Any* %ptr
ret void
}
define dllexport %Any @getGlobal(%Any* %ptr) {
%val = load %Any, %Any* %ptr
ret %Any %val
}
Trying to replace the setGlobal call with what should be