[llvm] [Core] Skip over target name in intrinsic name lookup (PR #109971)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 10:27:05 PDT 2024


================
@@ -940,8 +940,8 @@ void Function::setOnlyAccessesInaccessibleMemOrArgMem() {
 }
 
 /// Table of string intrinsic names indexed by enum value.
-static const char * const IntrinsicNameTable[] = {
-  "not_intrinsic",
+static constexpr const char *const IntrinsicNameTable[] = {
----------------
arsenm wrote:

Would switching this to StringLiteral help at all? 

https://github.com/llvm/llvm-project/pull/109971


More information about the llvm-commits mailing list