[PATCH] D116156: [AArch64] Adding "armv8.8-a" BC instruction.
Tomas Matheson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 22 03:20:01 PST 2021
tmatheson created this revision.
Herald added subscribers: hiraditya, kristof.beyls.
tmatheson requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
'BC.cc', where 'cc' is any ordinary condition code, is an instruction
that looks exactly like B.cc (the normal conditional branch), except
that bit 4 of the encoding is 1 rather than 0, which hints something
to the branch predictor (specifically, that this branch is expected to
be highly consistent, even though _which way_ it will consistently go
is not known at compile time).
This commit introduces a special subtarget feature for HBC, which is a
dependency of the top-level 8.8-A feature, and uses that to enable the
new BC instruction.
Patch by Simon Tatham and Tomas Matheson
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D116156
Files:
llvm/lib/Target/AArch64/AArch64.td
llvm/lib/Target/AArch64/AArch64InstrFormats.td
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/lib/Target/AArch64/AArch64Subtarget.h
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/test/MC/AArch64/armv8.8a-hbc.s
llvm/test/MC/Disassembler/AArch64/armv8.8a-hbc.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116156.395828.patch
Type: text/x-patch
Size: 11958 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211222/39e0b449/attachment.bin>
More information about the llvm-commits
mailing list