Home
last modified time | relevance | path

Searched refs:any_isa (Results 1 – 2 of 2) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/
DAnyTest.cpp28 EXPECT_FALSE(any_isa<int>(A)); in TEST()
32 EXPECT_TRUE(any_isa<int>(B)); in TEST()
33 EXPECT_FALSE(any_isa<float>(B)); in TEST()
36 EXPECT_TRUE(any_isa<int>(C)); in TEST()
40 EXPECT_TRUE(any_isa<const char *>(D)); in TEST()
41 EXPECT_FALSE(any_isa<int>(D)); in TEST()
45 EXPECT_TRUE(any_isa<double>(E)); in TEST()
46 EXPECT_FALSE(any_isa<float>(E)); in TEST()
53 EXPECT_TRUE(any_isa<int>(F)); in TEST()
54 EXPECT_TRUE(any_isa<int>(B)); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DAny.h97 template <typename T> friend bool any_isa(const Any &Value);
105 template <typename T> bool any_isa(const Any &Value) { in any_isa() function
134 assert(Value && any_isa<T>(*Value) && "Bad any cast!"); in any_cast()
135 if (!Value || !any_isa<U>(*Value)) in any_cast()
142 assert(Value && any_isa<U>(*Value) && "Bad any cast!"); in any_cast()
143 if (!Value || !any_isa<U>(*Value)) in any_cast()