Displaying 20 results from an estimated 600 matches similar to: "[LLVMdev] Disabling optimizations when using llvm::createPrintModulePass"
2013 Nov 28
0
[LLVMdev] Disabling optimizations when using llvm::createPrintModulePass
IRBuilder is a templated class, and one of the template arguments is the constant folder to use. By default it uses the ConstantFolder class which does target-independant constant folding. If you want to disable constant folding you can specify the NoFolder class instead, i.e. declare the builder as follows:
IRBuilder<true, llvm::NoFolder> builder(body)
On 26 Nov 2013, at 19:23, Daniel
2013 Dec 08
1
[LLVMdev] Win32: Crash in DLL created by llvm that calls into the "putchar" function
Hey Jeremy,
(putting the discussion back to the list.)
2013/12/8 Jeremy Lakeman <Jeremy.Lakeman at gmail.com>:
> If I run your demo exe it crashes, if I re-link the dll with VS 2010 it
> errors gracefully;
>
> runtime error R6030
> - CRT not initialized
>
> putchar is a c runtime function.
> I'm betting that your exe doesn't initialise the runtime library?
2013 Oct 31
3
[LLVMdev] Current state of the lld project
Hello list,
on the lld main page at http://lld.llvm.org, it says:
"lld is in its early stages of development.
It can currently self host on Linux x86-64 with -static."
Is this information up-to-date?
I'm interested in using lld on Windows (win32 on PC) with object files
created by llvm (no clang involved). Is that possible at this time?
It would be awesome to be able to create a
2013 Nov 01
0
[LLVMdev] Current state of the lld project
2013/10/31 Daniel Albuschat <d.albuschat at gmail.com>:
> on the lld main page at http://lld.llvm.org, it says:
>
> "lld is in its early stages of development.
> It can currently self host on Linux x86-64 with -static."
>
> Is this information up-to-date?
I made a quick test on a Windows 8 64bit system:
test.c: int main () { return 42; }
> clang -c test.c
2014 Apr 17
2
[LLVMdev] Importance of VMKit JIT function cache
Hi Gael
I am sorry that I couldn't explain what I was trying to say,
anyway I've got the answer :) . In the *parseFunction* method returns
*llvmfunction* pointer of compiled method and then it will be stored in
to cache. Could you please more elaborate on how those machine
instructions ( native functions) executing by llvm. I was trying trace
and I couldn't able to find
2013 Nov 15
2
[LLVMdev] lld fails to build on Visual Studio 2013
Hey there,
lld fails to build on Visual Studio 2013 because of ErrorOr<void>.
For example, ErrorOr<void> is used in InputGraph.h as the return type
of InputGraph::reset.
Inside of ErrorOr, there is:
typedef typename remove_reference<T>::type &reference
As T is void, and remove_reference <T>::type results in void, the
typedef expands to:
typedef void & reference,
2009 Nov 20
1
[LLVMdev] NoFolder class problem
Hi all,
while I was playing a little bit with IRBuilder I ended up with something
like this when included NoFolder.h
/work/llvm/include/llvm/User.h: In member function ‘llvm::Value*
llvm::NoFolder::CreateExtractElement(llvm::Constant*, llvm::Constant*)
const’:
/work/llvm/include/llvm/User.h:48: error: ‘static void* llvm::User::operator
new(size_t)’ is private
2006 Sep 16
0
[LLVMdev] failed assertion in PPCJITInfo.cpp when calling native function
Hi,
I am trying to generate LLVM code that calls a "native" function in the parent
program (the program hosting the JIT). I think that I have figured out how to
do this, but I get the following assertion failure when the LLVM code is
executed:
../llvm/lib/Target/PowerPC/PPCJITInfo.cpp:206: failed assertion
`ResultPtr >= -(1 << 23) && ResultPtr < (1 << 23)
2013 May 03
2
[LLVMdev] set of integers to metadata
Hello everyone,
I want to pass a set of integers using metadata but I don't know how. I
have tried:
the integers are in array[]
*1. *
LLVMContext& C = is->getContext();
Value* values[size];
for(int gy=0;gy<size;gy++){
values[gy]=ConstantInt::getSigned(Type::getInt64Ty(C),array[gy]);
}
*is->setMetadata("path",MDNode::get(C,values));*
failes when setMetadata(),
2013 Nov 15
0
[LLVMdev] lld fails to build on Visual Studio 2013
I think I removed all uses of ErrorOr<void>. Can you try updating?
On 15 November 2013 12:09, Daniel Albuschat <d.albuschat at gmail.com> wrote:
> Hey there,
>
> lld fails to build on Visual Studio 2013 because of ErrorOr<void>.
> For example, ErrorOr<void> is used in InputGraph.h as the return type
> of InputGraph::reset.
> Inside of ErrorOr, there is:
2015 Feb 17
2
[LLVMdev] Segfault when using llvm-3.6 and OpenGL at the same time on Linux (with mesa, which uses llvm-3.4)
2015-02-17 15:59 GMT+01:00 Tom Stellard <tom at stellard.net>:
> On Mon, Feb 16, 2015 at 10:38:52PM +0100, Daniel Albuschat wrote:
> > Hello there,
> >
> > tl;dr:
> > Is it a known behaviour that using llvm-3.4 and llvm-3.6 at the same time
> > in the same process (while llvm-3.6 is used from a linked shared library
> > and llvm-3.4 is dlopen'ed -
2013 May 03
0
[LLVMdev] set of integers to metadata
I also tried the following, with no compilation errors, but segfault, core
dumped:
*LLVMContext& C = is->getContext();
Value* values[size];
for(int gy=0;gy<size;gy++){
values[gy]=ConstantInt::getSigned(Type::getInt64Ty(C),array[gy]);
}
llvm::ArrayRef<Value*> bla = values[size];
is->setMetadata("path",MDNode::get(C,bla));*
On Fri, May 3, 2013
2013 Mar 08
1
[LLVMdev] [vmkit] Errors compiling vmkt
on 2013/3/1 6:11, Gaël Thomas wrote:
>
> Fundamentally, I think that for the VMKit project, it's important to
> be hosted as a subproject of llvm because VMKit heavily relies on llvm
> (and because llvm is maybe a little bit more attractive than inria:)).
> So, we will quickly re-merge the two projects and continuously
> integrates the stable (and interesting) contributions
2010 Nov 17
2
[LLVMdev] Missing :CreateFNeg() in NoFolder.h
Hi,
Just to report that when I tried to compile some code with a NoFolder given as
template arg to my IRBuilder, the compiler complained with:
In file included from lang_3-llvm.cxx:33:
/usr/lib/llvm-2.8/include/llvm/Support/IRBuilder.h: In member function
‘llvm::Value* llvm::IRBuilder<preserveNames, T, Inserter>::CreateFNeg
(llvm::Value*, const llvm::Twine&) [with bool preserveNames =
2016 Nov 07
2
[llvm] To link or not to link
Hi,
I have migrated an LLVM front-end from LLVM 3.5 to 3.8 and now to 3.9 and ORC, and there is a concept which I could not transfer. Consider:
extern "C" { void somefunc() {} }
…
auto llvmfunc = llvm::Function::Create(type, llvmFunction::PrivateLinkage, "bla", module));
executionengine.addGlobalMapping(llvmfunc, &somefunc);
// now I have llvmfunc to work with and
2015 Feb 16
4
[LLVMdev] Segfault when using llvm-3.6 and OpenGL at the same time on Linux (with mesa, which uses llvm-3.4)
Hello there,
tl;dr:
Is it a known behaviour that using llvm-3.4 and llvm-3.6 at the same time
in the same process (while llvm-3.6 is used from a linked shared library
and llvm-3.4 is dlopen'ed - with a strange detail: Especially if -rdynamic
is used when linking the program).
If so, is there a workaround?
If not, can it be fixed in llvm-3.6?
Long story:
I am writing a program that creates
2009 Aug 25
2
[LLVMdev] std::cout << *MyModule does not work anymore
On Aug 25, 2009, at 1:04 AM, Albert Graef wrote:
> . For many applications
> other than LLVM itself, the basic LLVM <=2.5 interface which just
> overwrites existing files is all that's ever needed.
On LLVM trunk, raw_fd_ostream is now back to overwriting files by
default, as it is the unanimous preference among in-tree users (and
out-of-tree users that I'm aware of).
Dan
2013 Aug 14
2
[LLVMdev] raw_ostream behavior
Hi,
When I run the below example, it results in :-
hello
world
LLVM ERROR: IO failure on output stream.
Testcase :-
#include <llvm/Support/raw_ostream.h>
int fn() {
std::string errorInfo;
llvm::raw_fd_ostream out("-", errorInfo);
out << "world\n";
return 0;
}
int main(int argc, char **argv) {
llvm::outs() << "hello\n";
fn();
2013 Aug 14
3
[LLVMdev] raw_ostream behavior
Hi Dan,
lld takes a -emit-yaml option, which emits the intermediate
representation(atoms) in YAML form.
By default output goes to stdout, the user can control it by using the
-o option too.
The way its handled is, similiar to this piece of pseudo-code
if (dash_o_option)
outputFile = dash_o_option->value()
else
outputFile = "-"
When lld tries to mix things that go to
2013 May 28
3
[LLVMdev] unexpectedly loop hanging
Hello everyone,
I was able to get all the execution paths between 2 points (basic blocks)
in my program (with the condition to traverse a loop only once). I mapped
all the basic blocks to integers and created a correspondent directed graph.
I was able to get all the paths (a path is represented by an integer
identifier). For my target program I have 72 paths, but the program hangs
unexpectedly