[llvm-commits] CVS: llvm/docs/LangRef.html
Changes in directory llvm/docs: LangRef.html updated: 1.157 - 1.158 --- Log message: clarify --- Diffs of the changes: (+6 -5) LangRef.html | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) Index: llvm/docs/LangRef.html diff -u llvm/docs/LangRef.html:1.157 llvm/docs/LangRef.html:1.158 --- llvm/docs/LangRef.html:1.157Thu Sep 14 13:23:26 2006 +++ llvm/docs/LangRef.html Sun Oct 15 15:05:59 2006 @@ -3181,8 +3181,9 @@ h5Overview:/h5 p -The 'ttllvm.returnaddress/tt' intrinsic returns a target-specific value -indicating the return address of the current function or one of its callers. +The 'ttllvm.returnaddress/tt' intrinsic attempts to compute a +target-specific value indicating the return address of the current function +or one of its callers. /p h5Arguments:/h5 @@ -3225,8 +3226,8 @@ h5Overview:/h5 p -The 'ttllvm.frameaddress/tt' intrinsic returns the target-specific frame -pointer value for the specified stack frame. +The 'ttllvm.frameaddress/tt' intrinsic attempts to return the +target-specific frame pointer value for the specified stack frame. /p h5Arguments:/h5 @@ -3909,7 +3910,7 @@ a href=mailto:[EMAIL PROTECTED]Chris Lattner/abr a href=http://llvm.org;The LLVM Compiler Infrastructure/abr - Last modified: $Date: 2006/09/14 18:23:26 $ + Last modified: $Date: 2006/10/15 20:05:59 $ /address /body /html ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Changes in directory llvm/lib/Transforms/Scalar: InstructionCombining.cpp updated: 1.518 - 1.519 --- Log message: fix a buggy check that accidentally disabled this xform --- Diffs of the changes: (+1 -1) InstructionCombining.cpp |2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.518 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.519 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.518 Thu Oct 5 01:55:50 2006 +++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Sun Oct 15 17:42:15 2006 @@ -1973,7 +1973,7 @@ // -(X sdiv C) - (X sdiv -C) if (Op1I-getOpcode() == Instruction::Div) if (ConstantSInt *CSI = dyn_castConstantSInt(Op0)) - if (CSI-isNullValue()) + if (!CSI-isNullValue()) if (Constant *DivRHS = dyn_castConstant(Op1I-getOperand(1))) return BinaryOperator::createDiv(Op1I-getOperand(0), ConstantExpr::getNeg(DivRHS)); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp
Changes in directory llvm/lib/VMCore: Type.cpp updated: 1.146 - 1.147 --- Log message: label* is not a valid type, add an assertion. --- Diffs of the changes: (+1 -0) Type.cpp |1 + 1 files changed, 1 insertion(+) Index: llvm/lib/VMCore/Type.cpp diff -u llvm/lib/VMCore/Type.cpp:1.146 llvm/lib/VMCore/Type.cpp:1.147 --- llvm/lib/VMCore/Type.cpp:1.146 Thu Sep 28 18:45:00 2006 +++ llvm/lib/VMCore/Type.cppSun Oct 15 18:21:12 2006 @@ -1204,6 +1204,7 @@ assert(ValueType Can't get a pointer to null type!); assert(ValueType != Type::VoidTy Pointer to void is not valid, use sbyte* instead!); + assert(ValueType != Type::LabelTy Pointer to label is not valid!); PointerValType PVT(ValueType); PointerType *PT = PointerTypes-get(PVT); ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/test/Regression/Verifier/2006-10-15-AddrLabel.ll
Changes in directory llvm/test/Regression/Verifier: 2006-10-15-AddrLabel.ll added (r1.1) --- Log message: testcase that causes the asmparser to assert --- Diffs of the changes: (+9 -0) 2006-10-15-AddrLabel.ll |9 + 1 files changed, 9 insertions(+) Index: llvm/test/Regression/Verifier/2006-10-15-AddrLabel.ll diff -c /dev/null llvm/test/Regression/Verifier/2006-10-15-AddrLabel.ll:1.1 *** /dev/null Sun Oct 15 18:26:38 2006 --- llvm/test/Regression/Verifier/2006-10-15-AddrLabel.ll Sun Oct 15 18:26:28 2006 *** *** 0 --- 1,9 + ; RUN: not llvm-as %s -o /dev/null -f + ; RUN: llvm-as %s -o /dev/null -f 21 | grep 'Cannot form' + + int %main() { + %foo = call sbyte* %llvm.stacksave() + %foop = cast sbyte* %foo to label* + %nret = load label* %foop + br label %nret; + } ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Changes in directory llvm/lib/AsmParser: llvmAsmParser.y updated: 1.264 - 1.265 --- Log message: Produce a useful error message for Regression/Verifier/2006-10-15-AddrLabel.ll --- Diffs of the changes: (+2 -0) llvmAsmParser.y |2 ++ 1 files changed, 2 insertions(+) Index: llvm/lib/AsmParser/llvmAsmParser.y diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.264 llvm/lib/AsmParser/llvmAsmParser.y:1.265 --- llvm/lib/AsmParser/llvmAsmParser.y:1.264Mon Oct 9 12:36:59 2006 +++ llvm/lib/AsmParser/llvmAsmParser.y Sun Oct 15 18:26:46 2006 @@ -1296,6 +1296,8 @@ CHECK_FOR_ERROR } | UpRTypes '*' { // Pointer type? +if (*$1 == Type::LabelTy) + GEN_ERROR(Cannot form a pointer to a basic block); $$ = new PATypeHolder(HandleUpRefs(PointerType::get(*$1))); delete $1; CHECK_FOR_ERROR ___ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits