[PATCH] D34983: Support placing switch tables in target-specific address spaces
Dylan McKay via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 4 07:28:46 PDT 2017
dylanmckay created this revision.
Herald added a subscriber: wdng.
In the AVR architecture, switch tables need to be placed into a special
'program memory' address space (id=1).
In order to support this, add a hook to `TargetTransformInfo` that
targets can override.
If there are any more suitable reviewers I couldn't think of, please add them :)
https://reviews.llvm.org/D34983
Files:
include/llvm/Analysis/TargetTransformInfo.h
include/llvm/Analysis/TargetTransformInfoImpl.h
include/llvm/CodeGen/BasicTTIImpl.h
lib/Analysis/TargetTransformInfo.cpp
lib/Target/AVR/AVRTargetMachine.cpp
lib/Target/AVR/AVRTargetMachine.h
lib/Target/AVR/AVRTargetTransformInfo.h
lib/Target/AVR/LLVMBuild.txt
lib/Transforms/Utils/SimplifyCFG.cpp
test/CodeGen/AVR/switch-lookup-table-in-progmem-space.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34983.105175.patch
Type: text/x-patch
Size: 10908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170704/acf5d4a1/attachment-0001.bin>
More information about the llvm-commits
mailing list