[llvm] [llvm][IR] Add per-global code model attribute (PR #72077)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 19:27:27 PST 2023


================
@@ -1144,6 +1144,22 @@ static bool getDecodedDSOLocal(unsigned Val) {
   }
 }
 
+static CodeModel::Model getDecodedCodeModel(unsigned Val) {
+  switch (Val) {
+  case 1:
+    return CodeModel::Tiny;
+  default: // Map unknown values to small.
----------------
aeubanks wrote:

should error out on invalid value

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


More information about the llvm-commits mailing list