mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Add MEMSET/MEMCPY/MEMMOVE operations. Fix a really bad bug in the vector
SDNode ctor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19462 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -155,6 +155,14 @@ namespace ISD {
|
||||
// the calling convention in effect here.
|
||||
CALL,
|
||||
|
||||
// MEMSET/MEMCPY/MEMMOVE - The first operand is the chain, and the rest
|
||||
// correspond to the operands of the LLVM intrinsic functions. The only
|
||||
// result is a token chain. The alignment argument is guaranteed to be a
|
||||
// Constant node.
|
||||
MEMSET,
|
||||
MEMMOVE,
|
||||
MEMCPY,
|
||||
|
||||
// ADJCALLSTACKDOWN/ADJCALLSTACKUP - These operators mark the beginning and
|
||||
// end of a call sequence and indicate how much the stack pointer needs to
|
||||
// be adjusted for that particular call. The first operand is a chain, the
|
||||
@@ -405,8 +413,8 @@ protected:
|
||||
}
|
||||
SDNode(unsigned NT, std::vector<SDOperand> &Nodes) : NodeType(NT) {
|
||||
Operands.swap(Nodes);
|
||||
for (unsigned i = 0, e = Nodes.size(); i != e; ++i)
|
||||
Nodes[i].Val->Uses.push_back(this);
|
||||
for (unsigned i = 0, e = Operands.size(); i != e; ++i)
|
||||
Operands[i].Val->Uses.push_back(this);
|
||||
}
|
||||
|
||||
virtual ~SDNode() {
|
||||
|
Reference in New Issue
Block a user