summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h
index 01f66fa7eac..2f5a701499d 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h
@@ -99,6 +99,9 @@ protected:
SubRegisterOffsetInBits = OffsetInBits;
}
+ /// Add masking operations to stencil out a subregister.
+ void maskSubRegister();
+
public:
DwarfExpression(unsigned DwarfVersion) : DwarfVersion(DwarfVersion) {}
virtual ~DwarfExpression() {};
@@ -126,8 +129,10 @@ public:
/// is at the top of the DWARF stack.
void AddOpPiece(unsigned SizeInBits, unsigned OffsetInBits = 0);
- /// Emit a shift-right dwarf expression.
+ /// Emit a shift-right dwarf operation.
void AddShr(unsigned ShiftBy);
+ /// Emit a bitwise and dwarf operation.
+ void AddAnd(unsigned Mask);
/// Emit a DW_OP_stack_value, if supported.
///
OpenPOWER on IntegriCloud