summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Analysis/VectorFunctionABITest.cpp
diff options
context:
space:
mode:
authorFrancesco Petrogalli <francesco.petrogalli@arm.com>2019-12-13 19:15:29 +0000
committerFrancesco Petrogalli <francesco.petrogalli@arm.com>2019-12-13 19:42:04 +0000
commit19f73f0d1b8d4f4a7b7451fea33a35015fe0942d (patch)
tree426b50dc3a7f66a447e1cd38f710eaef25a2cf12 /llvm/unittests/Analysis/VectorFunctionABITest.cpp
parent193da743db63bc7299717f583a63e68d55408731 (diff)
downloadbcm5719-llvm-19f73f0d1b8d4f4a7b7451fea33a35015fe0942d.tar.gz
bcm5719-llvm-19f73f0d1b8d4f4a7b7451fea33a35015fe0942d.zip
Revert "[VectorUtils] Introduce the Vector Function Database (VFDatabase)."
This reverts commit 0be81968a283fd4161cb9ac9748d5ed200926292. The VFDatabase needs some rework to be able to handle vectorization and subsequent scalarization of intrinsics in out-of-tree versions of the compiler. For more details, see the discussion in https://reviews.llvm.org/D67572.
Diffstat (limited to 'llvm/unittests/Analysis/VectorFunctionABITest.cpp')
-rw-r--r--llvm/unittests/Analysis/VectorFunctionABITest.cpp24
1 files changed, 3 insertions, 21 deletions
diff --git a/llvm/unittests/Analysis/VectorFunctionABITest.cpp b/llvm/unittests/Analysis/VectorFunctionABITest.cpp
index becfe51cc0c..6aaa38c7d83 100644
--- a/llvm/unittests/Analysis/VectorFunctionABITest.cpp
+++ b/llvm/unittests/Analysis/VectorFunctionABITest.cpp
@@ -13,7 +13,7 @@
using namespace llvm;
-// This test makes sure that the demangling method succeeds only on
+// This test makes sure that the getFromVFABI method succeeds only on
// valid values of the string.
TEST(VectorFunctionABITests, OnlyValidNames) {
// Incomplete string.
@@ -91,8 +91,8 @@ protected:
unsigned &VF = Info.Shape.VF;
VFISAKind &ISA = Info.ISA;
SmallVector<VFParameter, 8> &Parameters = Info.Shape.Parameters;
- std::string &ScalarName = Info.ScalarName;
- std::string &VectorName = Info.VectorName;
+ StringRef &ScalarName = Info.ScalarName;
+ StringRef &VectorName = Info.VectorName;
bool &IsScalable = Info.Shape.IsScalable;
// Invoke the parser.
bool invokeParser(const StringRef MangledName) {
@@ -243,12 +243,6 @@ TEST_F(VFABIParserTest, ISA) {
EXPECT_EQ(ISA, VFISAKind::AVX512);
}
-TEST_F(VFABIParserTest, LLVM_ISA) {
- EXPECT_FALSE(invokeParser("_ZGV_LLVM_N2v_sin"));
- EXPECT_TRUE(invokeParser("_ZGV_LLVM_N2v_sin_(vector_name)"));
- EXPECT_EQ(ISA, VFISAKind::LLVM);
-}
-
TEST_F(VFABIParserTest, InvalidMask) {
EXPECT_FALSE(invokeParser("_ZGVsK2v_sin"));
}
@@ -531,15 +525,3 @@ TEST_F(VFABIParserTest, LLVM_InternalISA) {
EXPECT_TRUE(invokeParser("_ZGV_LLVM_N2v_sin_(vector_name)"));
EXPECT_EQ(ISA, VFISAKind::LLVM);
}
-
-TEST_F(VFABIParserTest, IntrinsicsInLLVMIsa) {
- EXPECT_TRUE(invokeParser("_ZGV_LLVM_N4vv_llvm.pow.f32(__svml_powf4)"));
- EXPECT_EQ(VF, (unsigned)4);
- EXPECT_FALSE(IsMasked());
- EXPECT_FALSE(IsScalable);
- EXPECT_EQ(ISA, VFISAKind::LLVM);
- EXPECT_EQ(Parameters.size(), (unsigned)2);
- EXPECT_EQ(Parameters[0], VFParameter({0, VFParamKind::Vector}));
- EXPECT_EQ(Parameters[1], VFParameter({1, VFParamKind::Vector}));
- EXPECT_EQ(ScalarName, "llvm.pow.f32");
-}
OpenPOWER on IntegriCloud