[PATCH] D37184: [X86] Add constant pool decoding to more instructions

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 26 13:20:27 PDT 2017


craig.topper created this revision.

This is a proof of concept to add constant pool decoding to more instructions.

So far I've only added support for add/sub/and/or/xor. I've printed the and/or/xor as bytes, since it was easier to think about small immediates. Maybe we should print them in hex?

I only regenerated a few tests just as as a demonstration.


https://reviews.llvm.org/D37184

Files:
  lib/Target/X86/X86MCInstLower.cpp
  lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
  lib/Target/X86/X86ShuffleDecodeConstantPool.h
  test/CodeGen/X86/vector-shift-shl-128.ll
  test/CodeGen/X86/vector-shift-shl-256.ll
  test/CodeGen/X86/vector-shift-shl-512.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37184.112797.patch
Type: text/x-patch
Size: 39167 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170826/08b7ca9e/attachment.bin>


More information about the llvm-commits mailing list