[PATCH] D100941: Implementation for `TargetTransformInfo::hasActiveVectorLength()`
Vineet Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 21 04:10:38 PDT 2021
vkmr created this revision.
vkmr added reviewers: simoll, andrew.w.kaylor, rogfer01.
vkmr added a project: VP.
Herald added a subscriber: hiraditya.
vkmr requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch adds the missing implementation for `TargetTransformInfo::hasActiveVectorLength()` without which using `hasActiveVectorLength()` causes linker error.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100941
Files:
llvm/lib/Analysis/TargetTransformInfo.cpp
Index: llvm/lib/Analysis/TargetTransformInfo.cpp
===================================================================
--- llvm/lib/Analysis/TargetTransformInfo.cpp
+++ llvm/lib/Analysis/TargetTransformInfo.cpp
@@ -1037,6 +1037,10 @@
return TTIImpl->supportsScalableVectors();
}
+bool TargetTransformInfo::hasActiveVectorLength() const {
+ return TTIImpl->hasActiveVectorLength();
+}
+
InstructionCost
TargetTransformInfo::getInstructionLatency(const Instruction *I) const {
return TTIImpl->getInstructionLatency(I);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100941.339176.patch
Type: text/x-patch
Size: 527 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210421/b9f5b357/attachment.bin>
More information about the llvm-commits
mailing list