Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] There are compiling errors when converting bytecode to c by LLC"
2011 Oct 29
0
[LLVMdev] There are compiling errors when converting bytecode to c by LLC
Hi Fei Jia,
What revision are you using? I suggest you to try C backend with the
most recent LLVM version, if possible. I recall I had some similar C
backend breakages in July-August: structs definitions were lost
somewhere. To my understanding, the correct result should look like
this:
/* Typedefs */
typedef struct l_unnamed_0 l_unnamed_0;
typedef struct l_unnamed_1 l_unnamed_1;
/* Structure
2011 Sep 22
2
[LLVMdev] question on difference of bitcode between C and C++
Hi Bill,
Thanks for reply! I am sorry I didn't express my question clearly.
Examples may explain well. Now I am trying to analyze the data flow of
programs. I first compile the C code to bitcode, and then apply our
algorithm to the bitcode to find the dependency between statements. But as
to C++ code, there are class, vector, reference, I may need to revise my
algorithm to analyze bitcode
2011 Sep 22
2
[LLVMdev] question on difference of bitcode between C and C++
Could anybody provide me some links or pages or infos of the difference of
bitcodes of C and C++? We have implemented an optimization pass on bitcode
generated from C, and we are trying to find out whether it will work on
bitcode from C++. Thanks!
--
Best Regards,
Fei Jia
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Sep 22
0
[LLVMdev] question on difference of bitcode between C and C++
On Sep 21, 2011, at 6:13 PM, Fei Jia wrote:
> Could anybody provide me some links or pages or infos of the difference of bitcodes of C and C++? We have implemented an optimization pass on bitcode generated from C, and we are trying to find out whether it will work on bitcode from C++. Thanks!
>
Hi Fei,
There isn't a difference in the bitcode format of a C as opposed to a C++ program.
2011 Sep 22
0
[LLVMdev] question on difference of bitcode between C and C++
On Wed, Sep 21, 2011 at 7:01 PM, Fei Jia <j.jiafei at gmail.com> wrote:
> Hi Bill,
> Thanks for reply! I am sorry I didn't express my question clearly.
> Examples may explain well. Now I am trying to analyze the data flow of
> programs. I first compile the C code to bitcode, and then apply our
> algorithm to the bitcode to find the dependency between statements. But as
2011 Sep 22
2
[LLVMdev] question on difference of bitcode between C and C++
On 22 September 2011 03:30, Eli Friedman <eli.friedman at gmail.com> wrote:
>> I am trying to find such difference of bitcode between C and C++.
>
> There isn't any difference in that sense... in IR, a constructor is
> just a function call, a reference is just a pointer, etc.
Hi Fei,
While Clang (like others) lowers C++ into C semantics and lower that
into IR, there are
2011 Sep 22
0
[LLVMdev] question on difference of bitcode between C and C++
Another difference is the presence of exceptions in C++, which would require you to handle more IR instructions. This might not matter depending on type of analysis you do.
See: http://llvm.org/docs/LangRef.html#i_invoke
(Note that there is a substantial rewrite of exception handling going into 3.0)
Anna.
On Sep 22, 2011, at 3:29 AM, Renato Golin wrote:
> On 22 September 2011 03:30, Eli
2015 Sep 23
4
Find loops in LLVM bytecode
Hi,
I want to find simple loops in LLVM bytecode, and extract the basic
information of the loop.
For example:
for (i=0; i<1000; i++)
sum += i;
I want to extract the bound [0, 1000), the loop variable "i" and the
loop body (sum += i).
What should I do?
I read the LLVM API document, and find some useful classes like "Loop",
"LoopInfo".
But I do
2011 Nov 20
2
I'm writing this letter to enquire where can I download the package of "lmtest".
Dear editor:
I'm writing this letter to enquire where can I download the package of "lmtest". Can you send me this package?
THanks a lot.
Best regards,
Shu-Fei Wu
2004 May 31
4
Need guides on setting up PDA on asterisk server
Can PDAs be used as softphones/clients on asterisk?
what i wanted to do is to set up 2 PDAs as softphone(client) which allows them to communicate each other through asterisk server(desktop)
devices i have:
pda compaq model 3680
pda sharp sl5500
access point
desktop(asterisk)
can i apply my idea on the asterisk? any guides? thanks in advance :)
---------------------------------
Do
2006 Jun 14
3
A question about stepwise procedures: step function
Dear all,
I tried to use "step" function to do model selection, but I got an error massage. What I don't understand is that data as data.frame worked well for my other programs, how come I cannot make it run this time. Could you please tell me how I can fix it?
***************************************************************************************************
2006 Jun 26
1
OpenSSH compatibility with Tru64 version 4.0F?
I am just looking for a quick answer as to whether or not OpennSSH is
compatible with Digital Unix Tru64 v 4.0F.
Hing Fei Wong
Systems Engineer
Building 100, M1309
Valley Forge, PA
Admin # 4-6242
-----Original Message-----
From: Darren Tucker [mailto:dtucker at zip.com.au]
Sent: Friday, June 23, 2006 3:53 AM
To: Wong, Hing Fei
Cc: www at openbsd.org
Subject: Re: OpenSSH compatibility with
2005 Jul 11
2
[LLVMdev] Does the gcc frontend do inlining or deadcode elimination ?
This didn't work as I tried with 197.parser. it works without
"-Wl,-disable-opt" switch though.
[197.parser]$ llvm-gcc analyze-linkage.c and.c build-disjuncts.c
extract-links.c fast-match.c idiom.c main.c massage.c parse.c
post-process.c print.c prune.c read-dict.c utilities.c xalloc.c
word-file.c strncasecmp.c -Wa,-disable-opt -Wl,-disable-opt -lm -o
llvm_parser
[197.parser]$
2009 Mar 04
3
How to reuse my self function?
Dear all,
I wrote a function test1 in test1.R.
Right, I am writing another function test2 on test2.R and trying to use
test1 function.
How can I do?
Is there any similar way like including test1.R in test2.R file?
Thank You Very Much.
Jia-Ming
============================
$BD%2HLC(B Jia-Ming Chang
PhD Student
Comparative Bioinformatics Group
Bioinformatics and Genomics Programme
Centre
2005 Jul 07
3
[LLVMdev] Does the gcc frontend do inlining or deadcode elimination ?
I am investigating some inlining issue, so I did
llvm-gcc aaa.c bbb.c ... nnn.c -o output
opt -inline -inline-threshold=xxx < output.bc | llc -march=c >
output_inline.c
1)
I noticed that even if I set xxx to 0 or even a very small negative
number, many functions are eliminated. I am wondering if these functions
are inlined by the frontend, or identified as deadcode.
For instance,
2018 Jul 23
2
LLVM FunctionType cannot be returned as VectorType?
Hi Joshua,
Thanks for your great comment. I made up a ConstantVector in IR. Then I
successfully use AVX intrinsics to retrieve the returned vector data. The
remaining thing is that how to pass the vectors to LLVM function using
intrinsics. Do you have any suggestions? Please forgive me if the question
is too naive.
I pasted below two IR I used. The first one works. The second one doesn't.
2013 Mar 04
2
[LLVMdev] [MIPS] How can I add a constraint to LLVM/Clang for MIPS BE?
Hi Jack,
On Sat, Mar 2, 2013 at 8:15 AM, Jack Carter <Jack.Carter at imgtec.com> wrote:
> Jia,
>
> I made what I believe to be the correct changes and rebuilt clang and llc. Are the results what you expected? I so I will prepare the patches for commitment.
>
> Jack
>
> clang ../mips_R_JiaLiu.c -o mips_R_JiaLiu.ll -emit-llvm -O3 -S -target mipsel-unknown-linux -std=gnu89
2006 Sep 24
2
printing a variable name in a for loop
Hello,
How do you print a variable name in a for loop?
I'm trying to construct a csv file that looks like this:
Hello, variable1, value_of_variable1, World,
Hello, variable2, value_of_variable2, World,
Hello, variable3, value_of_variable3, World,
Using this:
for (variable in list(variable1, variable2, variable3)){
cat("Hello,", ???variable???, variable, ",
2010 May 11
3
Pairwise combination
Hi there,
I am looking for a function that takes a vector as input and generates
all pair wise combination of the elements of the input vector.
For example, the input vector is c(1,2,3,4). The output vector is c(1
and 2, 1 and 3, 1 and 4, 2 and 3, 2 and 4, 3 and 4). The
representation here is generic.
I can use a for loop to do it, but it gets slow when the number of
elements of the input
2008 Jan 11
4
GP exception on vmxon
Hello, I tried to write a piece of code to start vmx.
This code is directly interacting with cpu instead of with virtual cpu
as in xen.
But every time I call vmxon, a GP exception happens.
Could anybody help me on this? The following is the context
1. After booting up to the program, I disable A20M.
2. allocate a 4kb-aligned vmxon region and calculate its physical
address.
3. setup