aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandObjectScript.cpp
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2019-12-13 19:42:58 +0000
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2019-12-13 21:40:03 +0000
commitd9bb70acd7f6da7c4637826d5ae942ae61bf9494 (patch)
tree08eca1957a6d3d023df1db7f48a9d7f9487b6044 /lldb/source/Interpreter/CommandObjectScript.cpp
parentdd8a7fcdd73dd63529b81bf9f72c7529dfe99ec3 (diff)
downloadllvm-d9bb70acd7f6da7c4637826d5ae942ae61bf9494.zip
llvm-d9bb70acd7f6da7c4637826d5ae942ae61bf9494.tar.gz
llvm-d9bb70acd7f6da7c4637826d5ae942ae61bf9494.tar.bz2
[NFC] Change SelectionDAG::getMemBasePlusOffset() to use int64_t
Summary: This change is preparatory work to use this helper functions in more places. Currently the function only allows positive offsets, but there are cases where we want to subtract an offset from an existing pointer. The motivation for this change is our out-of-tree CHERI backend (https://github.com/CTSRD-CHERI/llvm-project). We use a separate register type to store pointers (128-bit capabilities, which are effectively unforgeable and monotonic fat pointers). These capabilities permit a reduced set of operations and therefore use a separate ValueType (iFATPTR). to represent pointers implemented as capabilities. Therefore, we need to avoid using ISD::ADD for our patterns that operate on pointers and need to use a function that chooses ISD::ADD or a new ISD::PTRADD opcode depending on the value type. We originally added a new DAG.getPointerAdd() function, but after this patch series we can modify the implementation of getMemBasePlusOffset() instead. Avoiding direct uses of ISD::ADD for pointer types will significantly reduce the amount of assertion/instruction selection failures for us in future upstream merges. Reviewers: spatel Reviewed By: spatel Subscribers: merge_guards_bot, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D71204
Diffstat (limited to 'lldb/source/Interpreter/CommandObjectScript.cpp')
0 files changed, 0 insertions, 0 deletions