Displaying 20 results from an estimated 5000 matches similar to: "[LLVMdev] Using asserts in LLVM"
2008 Nov 14
3
[LLVMdev] RefineAbstractType
On Wednesday 12 November 2008 19:13, Chris Lattner wrote:
> You shouldn't be refining the pointer, you should use:
>
> t1->refineAbstractType(t2)
Ok, I tried this and I get further. But the type system seems to have trouble
when refining multiple types and those types resolve to the same thing.
I turned on DEBUG_MERGE_TYPES to illustrate:
*** First function type ***
2004 Dec 10
1
[LLVMdev] Building llvm and cfrontend under cygwin
Hi Chris,
> Also note, LLVM 1.4 will be released in the next few days, so if
waiting is
> an option, you might choose to do so.
Alright, I've got llvm and llvm-gcc from RELEASE_14 cvs and tried
building it under cygwin.
1) The first problem is with llvm in SysUtils.c:
int executeProgram(const char *filename, char *const argv[], char *const
envp[])
{
................
execveTy
2005 Aug 27
1
[LLVMdev] llc problem
I got the following error in 1.5 release. As far as installation is concerned,
everything went fine.
llc hello.bc -o hello.bs
llc((anonymous namespace)::PrintStackTrace()+0x17)[0xd435f1]
llc((anonymous namespace)::SignalHandler(int)+0xbd)[0xd437ff]
/lib64/tls/libc.so.6[0x3ff522e410]
llc(llvm::Type::isFirstClassType() const+0x13)[0x8fc38d]
llc(llvm::FunctionType::FunctionType(llvm::Type const*,
2005 Jan 09
1
[LLVMdev] Cygwin build is still broken
Happy New Year all,
I've just updated to the latest CVS version and cygwin port is still
broken. When building full llvm:
llvm[3]: Compiling crtend.c for Debug build (bytecode)
llvm[3]: Compiling listend.ll for Debug build
llvm[3]: Linking comp_main.bc component...
assertion "(Result->isFirstClassType() || Result == Type::VoidTy ||
isa<OpaqueType>(Result)) && "LLVM
2012 Jul 06
2
[LLVMdev] Self-referential function pointer
Hey guys,
I could use some advice on a special case of a function pointer as a formal
argument. I would like the function pointer type to contain the actual
signature of the function, i.e. not a pointer to var args function. This
becomes an issue when I have a function which can take a pointer to itself
as an argument... our terminology for this is "a recursive procedure". That
is, of
2013 May 19
2
FLAC won't allow project to build due to assert.h
I was looking into adding support for FLAC in my audio library, but
there's a problem. Simply adding the output of:
pkg-config flac --cflags
to the compiler flags so that FLAC's headers can be found will break my
build with errors like:
error: 'assert' was not declared in this scope
The problem is that /usr/include/FLAC has an "assert.h" header. In my
C++
2004 Dec 22
0
[LLVMdev] More on Cygwin
Privet,
> > Unfortunately, at the end of the process I got the following
> > configure: WARNING: ***** llvm C/C++ front end was not
> > found, or does not appear to be working.
> Yes, Reid changed the CFE build instructions to add
> "--program-prefix=llvm" to the end of the configure line, but
> autoconf and Makefiles are not yet updated with that change.
2007 May 03
1
[LLVMdev] which g++ to compile LLVM CVS on Linux/AMD64?
Le Thu, May 03, 2007 at 09:36:22AM -0700, Chris Lattner écrivait/wrote:
> On Thu, 3 May 2007, Basile STARYNKEVITCH wrote:
> >
>
> > FWIW, the latest gcc snapshot from yesterday gcc version 4.3.0 20070501
> > (experimental) fail to compile latest LLVM (with compile errors!).
>
> Please file an llvm bug report with these errors. It may be that we are
> doing
2009 Jul 22
0
[LLVMdev] Assertion in Function.cpp when linking modules
Hi everybody
I am having a hard time figuring out the following problem:
I am porting a library that uses LLVM 2.5 from Linux to Windows (LLVM compiled with cmake/MSVC, llvm-g++ pre-built binaries).
Compilation works fine, but at runtime, I encounter the following assertion:
Assertion failed: FunctionType::isValidReturnType(getReturnType()) && !isa<OpaqueType>(getReturnType
())
2008 Aug 21
3
[LLVMdev] Fix build on GCC 4.3
Index: include/llvm/ADT/APInt.h
===================================================================
--- include/llvm/ADT/APInt.h (revision 55101)
+++ include/llvm/ADT/APInt.h (working copy)
@@ -20,6 +20,7 @@
#include <cassert>
#include <iosfwd>
#include <string>
+#include <cstring>
namespace llvm {
class Serializer;
-------------- next part --------------
An
2008 Nov 13
0
[LLVMdev] RefineAbstractType
On Nov 12, 2008, at 5:07 PM, David Greene wrote:
> On Wednesday 12 November 2008 18:58, Chris Lattner wrote:
>> On Nov 12, 2008, at 3:37 PM, David Greene wrote:
>>>>> Unfortunately, calling FunctionType::refineAbstractType(opaque,
>>>>> void
>>>>> (...))
>>>>> doesn't work because RefineAbstractType doesn't recurse
2008 Nov 13
3
[LLVMdev] RefineAbstractType
On Wednesday 12 November 2008 18:58, Chris Lattner wrote:
> On Nov 12, 2008, at 3:37 PM, David Greene wrote:
> >>> Unfortunately, calling FunctionType::refineAbstractType(opaque, void
> >>> (...))
> >>> doesn't work because RefineAbstractType doesn't recurse down into
> >>> the
> >>> pointee types.
> >>
> >>
2003 Nov 13
4
[LLVMdev] llvm 1.0, g++, SuSE 9, internal compiler error
> > hm, sending bug report is not my favorite hobby :)
>
> Well if you don't, it might never get fixed :(
OK-OK, let's save the world :)
Well, I've made it.
> It might be possible to hack your <cassert> header file or something
> though...
it is just a few places in three files as reported in my previous post. Then comes assert violation with message from
2017 Mar 08
3
Use of the C++ standard library in XRay compiler-rt
On Wed, Mar 8, 2017 at 2:28 PM Tim Shen <timshen at google.com> wrote:
> On Wed, Mar 8, 2017 at 1:49 PM David Blaikie <dblaikie at gmail.com> wrote:
>
> So I stumbled across an issue that I think is a bit fundamental:
>
> The xray runtime uses the C++ standard library.
>
> This seems like a problem because whatever C++ standard library is used to
> compile the
2011 Mar 19
2
[LLVMdev] [Patch] Fix bug in llvm::SmallVectorIml<>::insert
This fixes a bug in SmallVectorImpl<>::insert, which were not behaving
correctly on inserting an empty range into an empty vector:
#include <llvm/ADT/SmallVector.h>
#include <cassert>
int main() {
llvm::SmallVector<int, 1> v, w;
llvm::SmallVector<int, 1>::iterator it =
v.insert(v.end(), w.begin(), w.end());
assert(it == v.end());
}
The insert function(s)
2006 Aug 08
3
[LLVMdev] build error
>From CVS:
llvm[3]: Compiling SJLJ-Exception.cpp for Debug build (bytecode)
SJLJ-Exception.cpp:16:19: cstdlib: No such file or directory
SJLJ-Exception.cpp:17:19: cassert: No such file or directory
SJLJ-Exception.cpp: In function `void SJLJDestructor(llvm_exception*)':
SJLJ-Exception.cpp:43: error: `free' undeclared (first use this function)
SJLJ-Exception.cpp:43: error: (Each
2008 Nov 12
2
[LLVMdev] RefineAbstractType
On Wednesday 12 November 2008 17:29, Chris Lattner wrote:
> In fact, I strongly suspect that RefineAbstractType doesn't work if
> you give it something that isn't Opaque. I'd recommend only using it
> on Opaque, not random abstract types.
Ok.
> Sure, LLVM is more general than C. In LLVM, you can have a pointer
> that points to itself, for example:
>
> %t =
2010 Mar 17
1
[LLVMdev] is structtyp a firstclass typ?
Hi LLVM,
In lib/VMCare/Verifier.cpp::visitInstruction, we have such code
1287 // Check that the return value of the instruction is either
void or a legal
1288 // value type.
1289 Assert1(I.getType() == Type::getVoidTy(I.getContext()) ||
1290 I.getType()->isFirstClassType()
1291 || ((isa<CallInst>(I) || isa<InvokeInst>(I))
1292 &&
2008 Aug 21
0
[LLVMdev] Fix build on GCC 4.3
Please commit.
On Aug 20, 2008, at 8:02 PM, Zhongxing Xu wrote:
> Index: include/llvm/ADT/APInt.h
> ===================================================================
> --- include/llvm/ADT/APInt.h (revision 55101)
> +++ include/llvm/ADT/APInt.h (working copy)
> @@ -20,6 +20,7 @@
> #include <cassert>
> #include <iosfwd>
> #include <string>
>
2008 Sep 26
0
[LLVMdev] build failure in Attributes.h
Works for me. Presumably #including <cassert> will fix it though?
On Sep 26, 2008, at 4:30 PMPDT, Mike Stump wrote:
> I'm seeing a build failure...
>
> In file included from /Volumes/mrs5/net/llvm/llvm/lib/VMCore/
> Attributes.cpp:14:
> /Volumes/mrs5/net/llvm/llvm/include/llvm/Attributes.h: In member
> function 'llvm::Attributes
>