Lines Matching refs:Mang
18 static std::string mangleStr(StringRef IRName, Mangler &Mang, in mangleStr() argument
22 Mang.getNameWithPrefix(SS, IRName, DL); in mangleStr()
30 Mangler &Mang) { in mangleFunc() argument
39 Mang.getNameWithPrefix(SS, F, false); in mangleFunc()
52 Mangler Mang; in TEST() local
53 EXPECT_EQ(mangleStr("foo", Mang, DL), "_foo"); in TEST()
54 EXPECT_EQ(mangleStr("\01foo", Mang, DL), "foo"); in TEST()
55 EXPECT_EQ(mangleStr("?foo", Mang, DL), "_?foo"); in TEST()
57 llvm::CallingConv::C, Mod, Mang), in TEST()
60 llvm::CallingConv::C, Mod, Mang), in TEST()
63 llvm::CallingConv::C, Mod, Mang), in TEST()
72 Mangler Mang; in TEST() local
73 EXPECT_EQ(mangleStr("foo", Mang, DL), "_foo"); in TEST()
74 EXPECT_EQ(mangleStr("\01foo", Mang, DL), "foo"); in TEST()
75 EXPECT_EQ(mangleStr("?foo", Mang, DL), "?foo"); in TEST()
77 llvm::CallingConv::C, Mod, Mang), in TEST()
80 llvm::CallingConv::C, Mod, Mang), in TEST()
83 llvm::CallingConv::C, Mod, Mang), in TEST()
88 llvm::CallingConv::X86_StdCall, Mod, Mang), in TEST()
91 llvm::CallingConv::X86_FastCall, Mod, Mang), in TEST()
94 llvm::CallingConv::X86_VectorCall, Mod, Mang), in TEST()
99 llvm::CallingConv::X86_FastCall, Mod, Mang), in TEST()
108 Mangler Mang; in TEST() local
109 EXPECT_EQ(mangleStr("foo", Mang, DL), "foo"); in TEST()
110 EXPECT_EQ(mangleStr("\01foo", Mang, DL), "foo"); in TEST()
111 EXPECT_EQ(mangleStr("?foo", Mang, DL), "?foo"); in TEST()
113 llvm::CallingConv::C, Mod, Mang), in TEST()
116 llvm::CallingConv::C, Mod, Mang), in TEST()
119 llvm::CallingConv::C, Mod, Mang), in TEST()
124 llvm::CallingConv::X86_StdCall, Mod, Mang), in TEST()
127 llvm::CallingConv::X86_FastCall, Mod, Mang), in TEST()
130 llvm::CallingConv::X86_VectorCall, Mod, Mang), in TEST()
135 llvm::CallingConv::X86_VectorCall, Mod, Mang), in TEST()
144 Mangler Mang; in TEST() local
145 EXPECT_EQ(mangleStr("foo", Mang, DL), "foo"); in TEST()
146 EXPECT_EQ(mangleStr("\01foo", Mang, DL), "foo"); in TEST()
147 EXPECT_EQ(mangleStr("?foo", Mang, DL), "?foo"); in TEST()
149 llvm::CallingConv::C, Mod, Mang), in TEST()
152 llvm::CallingConv::C, Mod, Mang), in TEST()
155 llvm::CallingConv::C, Mod, Mang), in TEST()