aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorDavid Candler <david.candler@arm.com>2019-09-05 15:17:25 +0000
committerDavid Candler <david.candler@arm.com>2019-09-05 15:17:25 +0000
commita59bffb5769557499fb86c28953bb7e755bedbe9 (patch)
tree61aaea85a8ebe8b571e93ce60fb4b61f6e9dd8ad /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parent29361c704dfaefdd0f5a1c4b2d8eaa56f012bb7d (diff)
downloadllvm-a59bffb5769557499fb86c28953bb7e755bedbe9.zip
llvm-a59bffb5769557499fb86c28953bb7e755bedbe9.tar.gz
llvm-a59bffb5769557499fb86c28953bb7e755bedbe9.tar.bz2
[ARM] Add support for the s,j,x,N,O inline asm constraints
A number of inline assembly constraints are currently supported by LLVM, but rejected as invalid by Clang: Target independent constraints: s: An integer constant, but allowing only relocatable values ARM specific constraints: j: An immediate integer between 0 and 65535 (valid for MOVW) x: A 32, 64, or 128-bit floating-point/SIMD register: s0-s15, d0-d7, or q0-q3 N: An immediate integer between 0 and 31 (Thumb1 only) O: An immediate integer which is a multiple of 4 between -508 and 508. (Thumb1 only) This patch adds support to Clang for the missing constraints along with some checks to ensure that the constraints are used with the correct target and Thumb mode, and that immediates are within valid ranges (at least where possible). The constraints are already implemented in LLVM, but just a couple of minor corrections to checks (V8M Baseline includes MOVW so should work with 'j', 'N' and 'O' shouldn't be valid in Thumb2) so that Clang and LLVM are in line with each other and the documentation. Differential Revision: https://reviews.llvm.org/D65863 Change-Id: I18076619e319bac35fbb60f590c069145c9d9a0a llvm-svn: 371079
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions