Displaying 20 results from an estimated 600 matches similar to: "pointer arithmetic with address space attribute not working"
2019 Oct 31
2
pointer arithmetic with address space attribute not working
I forgot the -DADD flag earlier but the result did not change: https://godbolt.org/z/NPcn22
________________________________________
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of Doerfert, Johannes via llvm-dev <llvm-dev at lists.llvm.org>
Sent: Wednesday, October 30, 2019 20:18
To: LLVM Developers Mailing List; Y Song
Cc: Alexei Starovoitov
Subject: Re: [llvm-dev]
2019 Oct 31
2
pointer arithmetic with address space attribute not working
Thanks for the detailed info!
The problem was that I tried without assertions and didn't inspect the IR closely as it contained this,
for now, illegal instruction: %6 = bitcast i8* %5 to i8 addrspace(1)*
This is clearly a clang error.
I suggest opening a bug report, or sending the reproducer to cfe-dev at llvm.lists.org so someone will take a look that has more clang experience.
@Matt Do
2014 Jan 20
2
[LLVMdev] Methods on addrspace pointers
I’ve been developing an optimization pass that uses the address space attribute (__attribute__((address_space(200))) to indicate different kinds of pointers to be treated differently (I’m making them be pointers to a “global” address space as in UPC).
However, I’ve hit a snag in the frontend code generator: if I try to make a method call on a pointer with a custom address space, the frontend
2018 Apr 03
2
trivial input provokes failed assertion in Parser.h:322
While attempting to reduce a ubsan-specific bug, I stumbled upon the following.
[I would have filed a bug report, but don't have an account, and so
requested one per https://bugs.llvm.org/ about 7 hours ago -- but
still no response, so am sending this instead. ]
Using clang built from latest master of about 5 hours ago:
$ echo struct a typename a | clang -x c++ -
<stdin>:1:19: error:
2018 Apr 03
0
trivial input provokes failed assertion in Parser.h:322
Adding cfe-dev, since this is a clang issue.
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> on behalf of Jim Meyering via llvm-dev <llvm-dev at lists.llvm.org>
Reply-To: Jim Meyering <jim at meyering.net>
Date: Monday, April 2, 2018 at 8:40 PM
To: "llvm-dev at lists.llvm.org" <llvm-dev at lists.llvm.org>
Subject: [llvm-dev] trivial input provokes failed
2010 May 16
1
[LLVMdev] How to access the return value of a CallInst
Hi all:
I am trying to get the return value of a call instruction that I
inserted during the optimization pass I wrote. I have something like
the following:
CallInst *InitCall = CallInst::Create(InitFn, Args.begin(), Args.end(),
"log_load_addr_ret", LI);
CastInst *InsertedCast =
2019 Jan 09
2
distributed thinlto usage
Fails with gold too:
Library-native.o:Library.cpp:regway: error: undefined reference to 'vtable for regwayobj'
/home/dcallahan/fbsource/fbcode/third-party-buck/platform007/tools/binutils/bin/gold/ld: the vtable symbol may be undefined because the class is missing its key function
clang-8: error: linker command failed with exit code 1 (use -v to see invocation)
From: Teresa Johnson
2017 Dec 03
2
5.0.1-rc2 has been tagged
Hi, Tom,
Considering the severity of this bug, I would like to go ahead to push
the fix into release_50 branch. The fix has been tested in the trunk and by
various people as well and I will also make sure all BPF tests passed
before the push.
Thanks!
Yonghong
On Fri, Dec 1, 2017 at 10:18 AM, Y Song <ys114321 at gmail.com> wrote:
> Hi, Tom,
>
> I have a BPF backend bug which is
2018 Apr 03
1
[cfe-dev] trivial input provokes failed assertion in Parser.h:322
I believe https://reviews.llvm.org/D44449 <https://reviews.llvm.org/D44449> should fix this issue.
Thanks,
Volodymyr
> On Apr 2, 2018, at 22:51, Shoaib Meenai via cfe-dev <cfe-dev at lists.llvm.org> wrote:
>
> Adding cfe-dev, since this is a clang issue.
>
> From: llvm-dev <llvm-dev-bounces at lists.llvm.org <mailto:llvm-dev-bounces at lists.llvm.org>>
2011 Apr 05
2
[LLVMdev] Incompatible types at call site
On Tue, Apr 5, 2011 at 1:44 PM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Arushi,
>
>
> %tmp63 = call %struct.TypHeader* (...)* bitcast (%struct.TypHeader*
>> (%struct.TypHeader*, i64, i64)* @Cyclotomic to %struct.TypHeader*
>> (...)*)(%struct.TypHeader* %tmp62, i64 %tmp24, i32 1) nounwind, !dbg !907
>> ;
>> <%struct.TypHeader*> [#uses=1]
2007 Feb 24
3
[LLVMdev] cast instruction
I need to create a cast instruction that casts an sbyte* to another
pointer type. Previously I was using the CastInst::createInferredCast()
function to do that; however, that function has been removed. Which of
the create() functions from CastInst should I use to do that? It seems
like the obdvious answer should be createPointerCast(). However, the
documentation for createPointerCast
2017 Jun 04
2
need more information about the two classes of CallInst and CastInst
Hello, everyone.
I want to know more about the classes of CallInst and CastInst, but i can just find some information of them in the InstrTypes.h file. Can you offer me more materials about the two important classes? If there are some cases, that is better.
Thank you!
2017/6/4
Jay
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2014 Sep 01
2
[LLVMdev] Instrumenting Various Types Using Single Instrumentation Function
Hi All,
My instrumentation code needs to insert calls to transmit Value list. Each
element in this list could be of different type. The list is sent to
instrumenting function say void recordVarInputValues(int num, ...) . So, I
have created a Union type in Tracing.cpp, which I link with my benchmark
module at compile time. These steps are similar to giri instrumentation
2015 Jan 05
3
[LLVMdev] should AlwaysInliner inline this case?
On Mon, Jan 5, 2015 at 1:40 AM, Pete Cooper <peter_cooper at apple.com> wrote:
> Hi lx, Philip
>
> I've seen an instcombine which helps with this situation. It fires when
> the function types on both sides of the bitcast have the same number of
> operands and compatible types. It then adds bitcasts on the arguments and
> removes the one on the called function.
>
It
2010 Jun 12
1
[LLVMdev] Memory leak?
Hi folk,
I get the following stack trace and do have any clue how to fix the problem.
0 opt 0x087ecc99
1 opt 0x087ed265
2 0xb7f6a400 __kernel_sigreturn + 0
3 opt 0x086d4198
llvm::LeakDetector::addGarbageObject(llvm::Value const*) + 29
4 opt 0x0872945f llvm::Instruction::Instruction(llvm::Type
const*, unsigned int,
2012 Dec 21
2
[LLVMdev] assert in InnerLoopVectorizer::createEmptyLoop
I am seeing an assert when I compile the attached program with clang:
$ clang -fno-strict-aliasing -target mips64el-unknown-linux -O3
-fomit-frame-pointer -S test1.c -o test1.ll -emit-llvm
It asserts when LoopVectorize.cpp:506 is executed. It looks like it is
complaining because it is trying to zero-extend an i64 (type
Count->getType() returns i64) to an i32 (IdxTy).
if (Count->getType()
2008 May 22
2
[LLVMdev] Latest SVN head (gcc front end) build failed
hi all,
I was trying to build the latest LLVM gcc front end and it failed.
rajika@:~/project/llvm/dst-directory$ svn info | grep URL
URL: http://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk
configure option: ../dst-directory/configure --prefix=/usr/local/
--enable-llvm=/home/rajika/project/llvm/llvm-objects
it gave me the following errors
../../dst-directory/gcc/llvm-convert.cpp:1163: error:
2010 Feb 07
3
[LLVMdev] Help with Mac OS X 10.6.2 build
Greetings,
I am having trouble getting the Kaleidoscope example to build from
tutorial #3 on Mac OS X 10.6.2. I didn't have too much trouble
getting llvm-2.6 and llvm-gcc-frontend to build. Thanks for the help.
Here are the steps I followed:
Environment variables for build
export LLVMOBJDIR=/opt/llvm
export TARGETOPTIONS='--with-arch=nocona --with-tune=generic'
export
2011 Aug 19
1
[LLVMdev] LLVM: Very simple question
Hi, guys. I'm a newbie to LLVM and have a very simple question.
Which instructions should I use (in terms of IRBuilder calls) to allocate an
array of bytes in stack (alloca?), then to work with it (from a given
offset) as with integer (bitcast?). I mean something like that:
unsigned char var[8];
unsigned int offset = 3;
int val = *(int*)(&var+offset); /* read */
*(int*)(&var+offset)
2017 Nov 30
9
5.0.1-rc2 has been tagged
Hi,
I've tagged the 5.0.1-rc2 release, go ahead and start testing and report
your results.
-Tom