[SystemZ] Provide basic TargetTransformInfo implementation
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 31 Mar 2015 12:52:27 +0000 (12:52 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 31 Mar 2015 12:52:27 +0000 (12:52 +0000)
commit1f6666a49c9a8cc773e81545d8cd70b047b73672
tree47b195856a4fa125b0b24a49ac13af3e55dc1d70
parent6c66ad0d7500458884931437e0f54e215b0ec1f2
[SystemZ] Provide basic TargetTransformInfo implementation

This hooks up the TargetTransformInfo machinery for SystemZ,
and provides an implementation of getIntImmCost.

In addition, the patch adds the isLegalICmpImmediate and
isLegalAddImmediate TargetLowering overrides, and updates
a couple of test cases where we now generate slightly
better code.

llvm-svn: 233688
llvm/lib/Target/SystemZ/CMakeLists.txt
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/lib/Target/SystemZ/SystemZISelLowering.h
llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
llvm/lib/Target/SystemZ/SystemZTargetMachine.h
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp [new file with mode: 0644]
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h [new file with mode: 0644]
llvm/test/CodeGen/SystemZ/int-cmp-12.ll
llvm/test/CodeGen/SystemZ/int-cmp-47.ll