[cfe-users] LLVM 3.8.0 - Adding new instruction to a basic block

2016-09-04 Thread Simona Simona via cfe-users
Hello, I'm trying to add a new instruction after a given instruction in a basic block. Until LLVM 3.7, I was using the following code: BB->getInstList().insertAfter(I, new_inst); [where both I and new_inst are Instruction*] In LLVM 3.8 however, the SymbolTableList was created as a wrapper

[cfe-users] Fwd: Binary instruction operand type - Fast-math-flags - Vectorized IR code

2016-03-02 Thread Simona Simona via cfe-users
Hello, I'd appreciate it if someone could give me some hints on my questions below. Many thanks, Simona -- Forwarded message -- From: Simona Simona Date: Mon, Feb 29, 2016 at 11:09 AM Subject: Binary instruction operand type - Fast-math-flags - Vectorized IR code To: cfe-users@l

[cfe-users] Binary instruction operand type - Fast-math-flags - Vectorized IR code

2016-02-29 Thread Simona Simona via cfe-users
Hello, I'm using LLVM 3.4 and noticed that some of the IR binary instructions have the following format: = frem [fast-math flags]* , ; yields ty:result I'm mainly interested in extracting the type of the operands, regardless of whether the fast-math-flags are set or not. In the cas

[cfe-users] PointerTy and VectorTy

2016-02-25 Thread Simona Simona via cfe-users
Hello, I'm using LLVM 3.4 and have the following IR instruction: %tmp1 = load *<2 x float>** %tmp, align 1, !dbg !26 The operand 0 of the load instruction is of type PointerType. I've checked this using: I.getOperand(0)->getType()->isPointerTy(). I would appreciate if someone could tel

Re: [cfe-users] Memory accesses to struct variables in LLVM IR

2016-02-11 Thread Simona Simona via cfe-users
>> I would have the same question for other instrinsics, such as memset and >> memmove. >> >> Thanks, >> Simona >> >> On Thu, Feb 11, 2016 at 5:24 PM, David Blaikie >> wrote: >> >>> >>> >>> On Thu, Feb 11, 2016 at 7:25

Re: [cfe-users] Memory accesses to struct variables in LLVM IR

2016-02-11 Thread Simona Simona via cfe-users
11, 2016 at 5:24 PM, David Blaikie wrote: > > > On Thu, Feb 11, 2016 at 7:25 AM, Simona Simona via cfe-users < > cfe-users@lists.llvm.org> wrote: > >> Hi, >> >> I'm using clang 3.4 to generate the bitcode of a C source file. >> The source file is

[cfe-users] Memory accesses to struct variables in LLVM IR

2016-02-11 Thread Simona Simona via cfe-users
Hi, I'm using clang 3.4 to generate the bitcode of a C source file. The source file is the following: typedef struct __attribute__ ((__packed__)) { float x, y; } myType; myType make_float2(float x, float y) { myType f = { x, y }; return f; } int main(int argc, char* argv[]) { myType myVa