[llvm] 84d16e2 - Implementation for TargetTransformInfo::hasActiveVectorLength()

Roger Ferrer Ibanez via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 26 14:20:26 PDT 2021


Author: Vineet Kumar
Date: 2021-04-26T21:20:05Z
New Revision: 84d16e2055071abf0c2c22ad13d6f896a75bd38d

URL: https://github.com/llvm/llvm-project/commit/84d16e2055071abf0c2c22ad13d6f896a75bd38d
DIFF: https://github.com/llvm/llvm-project/commit/84d16e2055071abf0c2c22ad13d6f896a75bd38d.diff

LOG: Implementation for TargetTransformInfo::hasActiveVectorLength()

This patch adds the missing implementation for
TargetTransformInfo::hasActiveVectorLength() without which using
hasActiveVectorLength() causes linker error.

Patch by Vineet Kumar!

Differential Revision: https://reviews.llvm.org/D100941

Added: 
    

Modified: 
    llvm/lib/Analysis/TargetTransformInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/TargetTransformInfo.cpp b/llvm/lib/Analysis/TargetTransformInfo.cpp
index aa815a64285a..bb134415e8c3 100644
--- a/llvm/lib/Analysis/TargetTransformInfo.cpp
+++ b/llvm/lib/Analysis/TargetTransformInfo.cpp
@@ -1038,6 +1038,10 @@ bool TargetTransformInfo::supportsScalableVectors() const {
   return TTIImpl->supportsScalableVectors();
 }
 
+bool TargetTransformInfo::hasActiveVectorLength() const {
+  return TTIImpl->hasActiveVectorLength();
+}
+
 InstructionCost
 TargetTransformInfo::getInstructionLatency(const Instruction *I) const {
   return TTIImpl->getInstructionLatency(I);


        


More information about the llvm-commits mailing list