Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions clang/lib/AST/ByteCode/Opcodes.td
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,14 @@ def NarrowPtr : Opcode;
// [Pointer] -> [Pointer]
def ExpandPtr : Opcode;
// [Pointer, Offset] -> [Pointer]
def ArrayElemPtr : AluOpcode;
def ArrayElemPtrPop : AluOpcode;
def ArrayElemPtr : Opcode {
let Types = [IntegralTypeClass];
let HasGroup = 1;
}
def ArrayElemPtrPop : Opcode {
let Types = [IntegralTypeClass];
let HasGroup = 1;
}

def ArrayElemPop : Opcode {
let Args = [ArgUint32];
Expand Down Expand Up @@ -536,9 +542,15 @@ def InitElemPop : Opcode {
//===----------------------------------------------------------------------===//

// [Pointer, Integral] -> [Pointer]
def AddOffset : AluOpcode;
def AddOffset : Opcode {
let Types = [IntegralTypeClass];
let HasGroup = 1;
}
// [Pointer, Integral] -> [Pointer]
def SubOffset : AluOpcode;
def SubOffset : Opcode {
let Types = [IntegralTypeClass];
let HasGroup = 1;
}

// [Pointer, Pointer] -> [Integral]
def SubPtr : Opcode {
Expand Down
Loading