[PATCH] D13575: Add custom type for PseudoSourceValue
Phabricator via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 16 20:52:20 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL290037: Add custom type for PseudoSourceValue (authored by tstellar).
Changed prior to commit:
https://reviews.llvm.org/D13575?vs=36896&id=81835#toc
Repository:
rL LLVM
https://reviews.llvm.org/D13575
Files:
llvm/trunk/include/llvm/CodeGen/PseudoSourceValue.h
llvm/trunk/lib/CodeGen/MIRPrinter.cpp
Index: llvm/trunk/include/llvm/CodeGen/PseudoSourceValue.h
===================================================================
--- llvm/trunk/include/llvm/CodeGen/PseudoSourceValue.h
+++ llvm/trunk/include/llvm/CodeGen/PseudoSourceValue.h
@@ -42,7 +42,8 @@
ConstantPool,
FixedStack,
GlobalValueCallEntry,
- ExternalSymbolCallEntry
+ ExternalSymbolCallEntry,
+ TargetCustom
};
private:
@@ -67,6 +68,9 @@
bool isGOT() const { return Kind == GOT; }
bool isConstantPool() const { return Kind == ConstantPool; }
bool isJumpTable() const { return Kind == JumpTable; }
+ unsigned getTargetCustom() const {
+ return (Kind >= TargetCustom) ? ((Kind+1) - TargetCustom) : 0;
+ }
/// Test whether the memory pointed to by this PseudoSourceValue has a
/// constant value.
Index: llvm/trunk/lib/CodeGen/MIRPrinter.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/MIRPrinter.cpp
+++ llvm/trunk/lib/CodeGen/MIRPrinter.cpp
@@ -960,6 +960,9 @@
printLLVMNameWithoutPrefix(
OS, cast<ExternalSymbolPseudoSourceValue>(PVal)->getSymbol());
break;
+ case PseudoSourceValue::TargetCustom:
+ llvm_unreachable("TargetCustom pseudo source values are not supported");
+ break;
}
}
printOffset(Op.getOffset());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13575.81835.patch
Type: text/x-patch
Size: 1332 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161217/073a3024/attachment.bin>
More information about the llvm-commits
mailing list