[PATCH] Add HLE target feature
Krzysztof Parzyszek
kparzysz at codeaurora.org
Wed Feb 27 15:50:47 PST 2013
On 2/27/2013 5:09 PM, Michael Liao wrote:
>
> "LLVM Atomic Instructions and Concurrency Guide" puts more details on
> why atomic instructions are added in LLVM IR and optimizations around
> it. For HLE support, you could treat an enhancement on atomic
> instruction by taking advantage of hardware support or TM support, the
> current approach is to add hint in atomic instructions already existed
> in LLVM IR to help backend generate proper code.
This sort of thing belongs in the X86 backend, not LLVM IR. The IR
already contains atomic instructions, and the decision of how to best
implement them on a particular platform is best left to the individual
backends.
-Krzysztof
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
More information about the llvm-commits
mailing list