[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Reid Spencer
rspencer at reidspencer.com
Fri Jan 12 12:10:38 PST 2007
On Fri, 2007-01-12 at 11:59 -0800, Reid Spencer wrote:
> On Fri, 2007-01-12 at 12:32 -0600, Chris Lattner wrote:
> >
> > Changes in directory llvm/lib/AsmParser:
> >
> > llvmAsmParser.y updated: 1.305 -> 1.306
> > ---
> > Log message:
> >
> > This production is dead, the lexer can never return 'NOT'
>
> This didn't use to be dead and you've just broken llvm-upgrade which
> will pass "NOT" through. If the intention is not to support "NOT" any
> more than I will add the necessary transform in llvm-upgrade.
Okay, I'm wrong. The llvm-upgrade lexer wasn't recognizing it either.
NOT is just plain dead now :)
Reid.
>
> >
> >
> > ---
> > Diffs of the changes: (+1 -14)
> >
> > llvmAsmParser.y | 15 +--------------
> > 1 files changed, 1 insertion(+), 14 deletions(-)
> >
> >
> > Index: llvm/lib/AsmParser/llvmAsmParser.y
> > diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.305 llvm/lib/AsmParser/llvmAsmParser.y:1.306
> > --- llvm/lib/AsmParser/llvmAsmParser.y:1.305 Fri Jan 12 01:05:13 2007
> > +++ llvm/lib/AsmParser/llvmAsmParser.y Fri Jan 12 12:32:39 2007
> > @@ -974,7 +974,7 @@
> > %token DECLARE DEFINE GLOBAL CONSTANT SECTION VOLATILE
> > %token TO DOTDOTDOT NULL_TOK UNDEF INTERNAL LINKONCE WEAK APPENDING
> > %token DLLIMPORT DLLEXPORT EXTERN_WEAK
> > -%token OPAQUE NOT EXTERNAL TARGET TRIPLE ENDIAN POINTERSIZE LITTLE BIG ALIGN
> > +%token OPAQUE EXTERNAL TARGET TRIPLE ENDIAN POINTERSIZE LITTLE BIG ALIGN
> > %token DEPLIBS CALL TAIL ASM_TOK MODULE SIDEEFFECT
> > %token CC_TOK CCC_TOK CSRETCC_TOK FASTCC_TOK COLDCC_TOK
> > %token X86_STDCALLCC_TOK X86_FASTCALLCC_TOK
> > @@ -2611,19 +2611,6 @@
> > if ($$ == 0)
> > GEN_ERROR("fcmp operator returned null!");
> > }
> > - | NOT ResolvedVal {
> > - cerr << "WARNING: Use of eliminated 'not' instruction:"
> > - << " Replacing with 'xor'.\n";
> > -
> > - Value *Ones = ConstantInt::getAllOnesValue($2->getType());
> > - if (Ones == 0)
> > - GEN_ERROR("Expected integral type for not instruction!");
> > -
> > - $$ = BinaryOperator::create(Instruction::Xor, $2, Ones);
> > - if ($$ == 0)
> > - GEN_ERROR("Could not create a xor instruction!");
> > - CHECK_FOR_ERROR
> > - }
> > | ShiftOps ResolvedVal ',' ResolvedVal {
> > if ($4->getType() != Type::Int8Ty)
> > GEN_ERROR("Shift amount must be i8 type!");
> >
> >
> >
> > _______________________________________________
> > llvm-commits mailing list
> > llvm-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list