search for: cppwriter

Displaying 9 results from an estimated 9 matches for "cppwriter".

Did you mean: cdwriter
2012 Jun 04
2
[LLVMdev] llc unhandled attribute
...source to source transformation in llvm from c++11 more basic c++ (to transform away auto etc.) using llvm3.1. I generate llvm bitcode using "clang++ -emit-llvm ...", but executing llc -march=cpp throws /home/broes/software/llvm/lib/Target/CppBackend/CPPBackend.cpp:493: void {anonymous}::CppWriter::printAttributes(const llvm::AttrListPtr&, const string&): Assertion `attrs == 0 && "Unhandled attribute!"' failed. Does this point to some unimplented feature of the transformation? thanks in advance, Broes -------------- next part -------------- An HTML attachment...
2013 Mar 25
3
[LLVMdev] llvm2cpp attributes handling
...the assert in CPPBackend.cpp deprecated or should those attributes be handled somehow in C++ code generation (which means that the previous attribute list should be added to the AttrKind enum of the Attribute class)? Cheers, -- Harris Bakiras llc: CPPBackend.cpp:521: void {anonymous}::CppWriter::printAttributes(const llvm::AttributeSet&, const string&): Assertion `!attrs.hasAttributes() && "Unhandled attribute!"' failed. 0 llc 0x00000000010edc22 llvm::sys::PrintStackTrace(_IO_FILE*) + 34 1 llc 0x00000000010ed049 2 libpthread.so.0...
2013 Mar 25
0
[LLVMdev] llvm2cpp attributes handling
...pecifically. I think with the new attributes API there should be a general solution that doesn't require handling specific attributes explicitly, though I may be wrong. - David > > Cheers, > > -- > > Harris Bakiras > > llc: CPPBackend.cpp:521: void > {anonymous}::CppWriter::printAttributes(const llvm::AttributeSet&, const > string&): Assertion `!attrs.hasAttributes() && "Unhandled attribute!"' > failed. > 0 llc 0x00000000010edc22 llvm::sys::PrintStackTrace(_IO_FILE*) > + 34 > 1 llc 0x00000000010ed...
2012 Jun 04
0
[LLVMdev] llc unhandled attribute
...y auto etc.) using llvm3.1. >> > I generate llvm bitcode using "clang++ -emit-llvm ...", but executing >> > llc >> > -march=cpp throws >> > /home/broes/software/llvm/lib/Target/CppBackend/CPPBackend.cpp:493: >> > void >> > {anonymous}::CppWriter::printAttributes(const llvm::AttrListPtr&, const >> > string&): Assertion `attrs == 0 && "Unhandled attribute!"' failed. >> > >> > Does this point to some unimplented feature of the transformation? >> Yes, but it seems irrelevant to you...
2006 Oct 16
0
[LLVMdev] initializer does not match global variable type.
Hi Todd, On Mon, 2006-10-16 at 14:04 -0700, Anderson, Todd A wrote: > >-----Original Message----- > >From: llvmdev-bounces at cs.uiuc.edu > >[mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Chris Lattner > >Sent: Monday, October 16, 2006 2:09 PM > >To: LLVM Developers Mailing List > >Subject: Re: [LLVMdev] initializer does not match global variable type.
2006 Oct 16
2
[LLVMdev] initializer does not match global variable type.
>-----Original Message----- >From: llvmdev-bounces at cs.uiuc.edu >[mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Chris Lattner >Sent: Monday, October 16, 2006 2:09 PM >To: LLVM Developers Mailing List >Subject: Re: [LLVMdev] initializer does not match global variable type. > >On Mon, 16 Oct 2006, Anderson, Todd A wrote: >> I have an objective-c file, bar.m,
2006 Oct 17
1
[LLVMdev] initializer does not match global variable type.
>Right. This looks like it's just a simple bug in llvm2cpp. >CppWriter.cpp:698 contains: > > if (CA->isString() && CA->getType()->getElementType() == >Type::SByteTy) { > Out << "Constant* " << constName << " = ConstantArray::get(\""; > printEscapedString(CA->getAsString());...
2014 Mar 07
3
[LLVMdev] [RFC] Add second "failure" AtomicOrdering to cmpxchg instruction
...l, MVT::i64, OpsF, 2)); Results.push_back(Result.getValue(2)); diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index b137099..31585d9 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -1567,12 +1567,16 @@ void CppWriter::printInstruction(const Instruction *I, } case Instruction::AtomicCmpXchg: { const AtomicCmpXchgInst *cxi = cast<AtomicCmpXchgInst>(I); - StringRef Ordering = ConvertAtomicOrdering(cxi->getOrdering()); + StringRef SuccessOrdering = + ConvertAtomicOrdering(cxi->ge...
2014 Nov 03
8
[LLVMdev] [PATCH] Protection against stack-based memory corruption errors using SafeStack
...mplicitFloat || I->getKindAsEnum() == Attribute::Naked || diff --git a/lib/Target/CppBackend/CPPBackend.cpp b/lib/Target/CppBackend/CPPBackend.cpp index f610fbb..5589f69 100644 --- a/lib/Target/CppBackend/CPPBackend.cpp +++ b/lib/Target/CppBackend/CPPBackend.cpp @@ -510,6 +510,7 @@ void CppWriter::printAttributes(const AttributeSet &PAL, HANDLE_ATTR(StackProtect); HANDLE_ATTR(StackProtectReq); HANDLE_ATTR(StackProtectStrong); + HANDLE_ATTR(SafeStack); HANDLE_ATTR(NoCapture); HANDLE_ATTR(NoRedZone); HANDLE_ATTR(NoImplicitFloat); diff --git a...