mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
regenerate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27521 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ca73cd8830
commit
d25db20f1a
File diff suppressed because it is too large
Load Diff
@ -1547,8 +1547,17 @@ ConstExpr: CAST '(' ConstVal TO Types ')' {
|
|||||||
if ($5->getType() != Type::UIntTy)
|
if ($5->getType() != Type::UIntTy)
|
||||||
ThrowException("Second operand of extractelement must be uint!");
|
ThrowException("Second operand of extractelement must be uint!");
|
||||||
$$ = ConstantExpr::getExtractElement($3, $5);
|
$$ = ConstantExpr::getExtractElement($3, $5);
|
||||||
|
}
|
||||||
|
| INSERTELEMENT '(' ConstVal ',' ConstVal ',' ConstVal ')' {
|
||||||
|
$$ = ConstantExpr::getInsertElement($3, $5, $7);
|
||||||
|
}
|
||||||
|
| SHUFFLEVECTOR '(' ConstVal ',' ConstVal ',' ConstVal ')' {
|
||||||
|
if (!ShuffleVectorInst::isValidOperands($3, $5, $7))
|
||||||
|
ThrowException("Invalid shufflevector operands!");
|
||||||
|
$$ = ConstantExpr::getShuffleVector($3, $5, $7);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// ConstVector - A list of comma separated constants.
|
// ConstVector - A list of comma separated constants.
|
||||||
ConstVector : ConstVector ',' ConstVal {
|
ConstVector : ConstVector ',' ConstVal {
|
||||||
($$ = $1)->push_back($3);
|
($$ = $1)->push_back($3);
|
||||||
@ -2261,8 +2270,8 @@ InstVal : ArithmeticOps Types ValueRef ',' ValueRef {
|
|||||||
$$ = new InsertElementInst($2, $4, $6);
|
$$ = new InsertElementInst($2, $4, $6);
|
||||||
}
|
}
|
||||||
| SHUFFLEVECTOR ResolvedVal ',' ResolvedVal ',' ResolvedVal {
|
| SHUFFLEVECTOR ResolvedVal ',' ResolvedVal ',' ResolvedVal {
|
||||||
if (!ShuffleVectorInst::isValidOperands($2, $4, $6))
|
if (!ShuffleVectorInst::isValidOperands($2, $4, $6))
|
||||||
ThrowException("Invalid shufflevector operands!");
|
ThrowException("Invalid shufflevector operands!");
|
||||||
$$ = new ShuffleVectorInst($2, $4, $6);
|
$$ = new ShuffleVectorInst($2, $4, $6);
|
||||||
}
|
}
|
||||||
| PHI_TOK PHIList {
|
| PHI_TOK PHIList {
|
||||||
|
Loading…
Reference in New Issue
Block a user