projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43bc584
)
[VE] VP intrinsics are legal
author
Simon Moll
<simon.moll@emea.nec.com>
Fri, 30 Apr 2021 13:46:59 +0000
(15:46 +0200)
committer
Simon Moll
<simon.moll@emea.nec.com>
Fri, 30 Apr 2021 13:47:55 +0000
(15:47 +0200)
llvm/lib/Target/VE/VETargetTransformInfo.h
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/VE/VETargetTransformInfo.h
b/llvm/lib/Target/VE/VETargetTransformInfo.h
index
6730c43
..
6e6f4d2
100644
(file)
--- a/
llvm/lib/Target/VE/VETargetTransformInfo.h
+++ b/
llvm/lib/Target/VE/VETargetTransformInfo.h
@@
-64,6
+64,14
@@
public:
llvm_unreachable("Unsupported register kind");
}
+ /// \returns How the target needs this vector-predicated operation to be
+ /// transformed.
+ TargetTransformInfo::VPLegalization
+ getVPLegalizationStrategy(const VPIntrinsic &PI) const {
+ using VPLegalization = TargetTransformInfo::VPLegalization;
+ return VPLegalization(VPLegalization::Legal, VPLegalization::Legal);
+ }
+
unsigned getMinVectorRegisterBitWidth() const {
// TODO report vregs once vector isel is stable.
return 0;