search for: castisvalid

Displaying 15 results from an estimated 15 matches for "castisvalid".

2008 Nov 17
0
[LLVMdev] Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' faile
ok.. you are right. I had not inserted the AllocaInst in the function. Thanks a lot for solving my problem yet again :) --- On Mon, 11/17/08, Eli Friedman <eli.friedman at gmail.com> wrote: > From: Eli Friedman <eli.friedman at gmail.com> > Subject: Re: Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' faile > To: bhavi63 at yahoo.com > Date: Monday, November 17, 2008, 6:04 AM > On Sun, Nov 16, 2008 at 9:53 PM, bhavani krishnan > <bhavi63 at yahoo.com> wrote: > > Ah! I get it now.. thanks a lot Eli! > >...
2008 Nov 17
2
[LLVMdev] Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' failed.
...new AllocaInst(Type::Int32Ty); Value *ST = new StoreInst(Ten,AI,false,4,j); Value *BT = new BitCastInst(ST,VoidPtrTy,"",j); CallInst *CallPrint = CallInst::Create(myprint, BT, "", j); CallPrint->setTailCall(true); I am getting the following error while executing. Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' failed. What am I doing wrong :(? I always get stuck badly when these assertions fail :(. Please help me out here. Thanks, Bhavani --- On Sun, 11/16/08, Eli Friedman <eli.friedman at gmail.com> wrote: > From: Eli Friedma...
2008 Nov 17
1
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
...ow I am asking lot of questions but I am new to LLVM and am finding it hard to figure things out. Appreciate any help! Thanks, Bhavani --- On Mon, 11/17/08, Nick Lewycky <nicholas at mxc.ca> wrote: > From: Nick Lewycky <nicholas at mxc.ca> > Subject: Re: [LLVMdev] Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' failed. > To: bhavi63 at yahoo.com, "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu> > Date: Monday, November 17, 2008, 5:54 AM > bhavani krishnan wrote: > > ok.. So I am trying out what you have s...
2008 Nov 17
1
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
...Nick > > > Thanks, > > Bhavani > > > > > > > > > > --- On Mon, 11/17/08, Nick Lewycky > <nicholas at mxc.ca> wrote: > > > >> From: Nick Lewycky <nicholas at mxc.ca> > >> Subject: Re: [LLVMdev] Assertion > `castIsValid(getOpcode(), S, Ty) && "Illegal > BitCast"' failed. > >> To: bhavi63 at yahoo.com, "LLVM Developers > Mailing List" <llvmdev at cs.uiuc.edu> > >> Date: Monday, November 17, 2008, 5:54 AM > >> bhavani krishnan wrote: > >&gt...
2010 May 16
1
[LLVMdev] How to access the return value of a CallInst
...t. This compiles fine. But the CastInst cannot be created. The runtime error is : opt: /panfs/panasas-01.cs.wisc.edu/scratch/wang/LLVM/src/llvm/lib/VMCore/Instructions.cpp:2338: llvm::TruncInst::TruncInst(llvm::Value*, const llvm::Type*, const llvm::Twine&, llvm::Instruction*): Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal Trunc"' failed. 0 opt 0x000000000084e8bf 1 opt 0x000000000084f37a 2 libpthread.so.0 0x000000310ac0e930 3 libc.so.6 0x000000310a030265 gsignal + 53 4 libc.so.6 0x000000310a031d10 abort + 272 5 libc....
2017 Oct 14
2
Bug in replaceUsesOfWith: does not keep addrspace consistent in GEP
...rspace(1)* %slot to i64 addrspace(1)* %Val = load i64, i64 addrspace(1)* %slot_typed ret i64 %Val } ``` ### `SHOW_ERROR = 1` ``` Slot(original): %slot = getelementptr i32, i32 addrspace(42)* %0, i64 1 Slot(replaced): %slot = getelementptr i32, i32 addrspace(1)* %1, i64 1*Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create, file /Users/bollu/work/LLVM-all/polly/llvm/lib/IR/Instructions.cpp, line 2592. *[5] 56333 abort ./prog ``` Thanks, ~Siddharth. -- Sending this from my phone, please excuse any typos! -------------- next part -----------...
2008 Nov 17
0
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
...t;> > >>> > >>> > >>> > >>> --- On Mon, 11/17/08, Nick Lewycky > >> <nicholas at mxc.ca> wrote: > >>>> From: Nick Lewycky <nicholas at mxc.ca> > >>>> Subject: Re: [LLVMdev] Assertion > >> `castIsValid(getOpcode(), S, Ty) && > "Illegal > >> BitCast"' failed. > >>>> To: bhavi63 at yahoo.com, "LLVM > Developers > >> Mailing List" <llvmdev at cs.uiuc.edu> > >>>> Date: Monday, November 17, 2008, 5:54 AM > &...
2019 Oct 30
2
pointer arithmetic with address space attribute not working
...return arg; #endif } -bash-4.4$ -bash-4.4$ clang -g -c test.c -bash-4.4$ clang -g -c -DADD test.c clang-10: ../lib/IR/Instructions.cpp:2749: static llvm::CastInst *llvm::CastInst::Create(Instruction::CastOps, llvm::Value *, llvm::Type *, const llvm::Twine &, llvm::Instruction *): Assertion `castIsValid(op, S, Ty) && "Invalid cast!"' failed. Stack dump: 0. Program arguments: /data/users/yhs/work/llvm-project/llvm/build/install/bin/clang-10 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disa ble-free -main-file-name test.c -mrelocation-model static -mthread-...
2014 Jan 20
2
[LLVMdev] Methods on addrspace pointers
...e frontend code generator: if I try to make a method call on a pointer with a custom address space, the frontend chokes because it can’t bitcast between different address spaces, and methods are functions that take a pointer to “this” which is assumed to be in addrspace(0): > Assertion failed: (castIsValid(op, S, Ty) && "Invalid cast!"), function Create, file ../lib/IR/Instructions.cpp, line 2352. > 0 clang-3.4 0x00000001039527f8 llvm::sys::PrintStackTrace(__sFILE*) + 40 > 1 clang-3.4 0x0000000103952c54 SignalHandler(int) + 388 > 2 libsystem...
2019 Oct 31
2
pointer arithmetic with address space attribute not working
...return arg; #endif } -bash-4.4$ -bash-4.4$ clang -g -c test.c -bash-4.4$ clang -g -c -DADD test.c clang-10: ../lib/IR/Instructions.cpp:2749: static llvm::CastInst *llvm::CastInst::Create(Instruction::CastOps, llvm::Value *, llvm::Type *, const llvm::Twine &, llvm::Instruction *): Assertion `castIsValid(op, S, Ty) && "Invalid cast!"' failed. Stack dump: 0. Program arguments: /data/users/yhs/work/llvm-project/llvm/build/install/bin/clang-10 -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disa ble-free -main-file-name test.c -mrelocation-model static -mthread-...
2013 Oct 10
0
[LLVMdev] Illegal BitCast assertion failed
...en running this pass, the typeInFrontOfTheStream is an i1, which means the result of typeInFrontOfTheStream->getPointerTo() is an i1*. Remember that consume is a function that returns void*, which is seen in LLVMIR as i8*. And, for a first execution like that, I'm getting Assertion failed: (castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"), function BitCastInst, file /Developer/llvm/lib/IR/Instructions.cpp, line 2842. Does anyone have any suggestion about what I'm doing wrong? Thanks in advance, -- Cristianno Martins PhD Student of Computer Science University of Campi...
2013 Aug 12
0
[LLVMdev] Address space extension
On Aug 10, 2013, at 6:07 , Iain Sandoe <iain at codesourcery.com> wrote: > >> RELATED PROBLEMS >> 1) addrspacecast support: approved but not implemented yet. It will >> cleanup address spaces conversions localized in a single instruction >> allowing each target to define the semantic... > > Is anyone known to be working on this? If people agree that this
2019 Oct 31
2
pointer arithmetic with address space attribute not working
...> > -bash-4.4$ clang -g -c test.c > -bash-4.4$ clang -g -c -DADD test.c > clang-10: ../lib/IR/Instructions.cpp:2749: static llvm::CastInst > *llvm::CastInst::Create(Instruction::CastOps, llvm::Value *, > llvm::Type *, const llvm::Twine > &, llvm::Instruction *): Assertion `castIsValid(op, S, Ty) && "Invalid > cast!"' failed. > Stack dump: > 0. Program arguments: > /data/users/yhs/work/llvm-project/llvm/build/install/bin/clang-10 -cc1 > -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disa > ble-free -main-file-name test.c -mrel...
2013 Aug 10
3
[LLVMdev] Address space extension
Hello all .. my first post to this thread (and this list, as it happens).. On 10 Aug 2013, at 07:46, Michele Scandale wrote: > I just want make a quick summary: a summary is indeed useful. > OBJECTIVE: discuss for finding a way to represent logical (derived from > source language abstractions) address space also in the IR to be able to > exploit this information for optimizations.
2015 Aug 19
5
creating a callinst to an external function
Dear All I'm making an instrumentation pass. The pass is supposed to modify the given IR in a specefic way. One of the required modifications is to insert a call to a function at a specific location. This is the signature of the called function: void myclass::foo(Function *f, BasicBlock* b) This function's prototype is in an foofile.h file in include/llvm And the function