167bf885d62b1473c833bece1c9e0bb624e6ba391buzbee/*
267bf885d62b1473c833bece1c9e0bb624e6ba391buzbee * Copyright (C) 2011 The Android Open Source Project
367bf885d62b1473c833bece1c9e0bb624e6ba391buzbee *
467bf885d62b1473c833bece1c9e0bb624e6ba391buzbee * Licensed under the Apache License, Version 2.0 (the "License");
567bf885d62b1473c833bece1c9e0bb624e6ba391buzbee * you may not use this file except in compliance with the License.
667bf885d62b1473c833bece1c9e0bb624e6ba391buzbee * You may obtain a copy of the License at
767bf885d62b1473c833bece1c9e0bb624e6ba391buzbee *
867bf885d62b1473c833bece1c9e0bb624e6ba391buzbee *      http://www.apache.org/licenses/LICENSE-2.0
967bf885d62b1473c833bece1c9e0bb624e6ba391buzbee *
1067bf885d62b1473c833bece1c9e0bb624e6ba391buzbee * Unless required by applicable law or agreed to in writing, software
1167bf885d62b1473c833bece1c9e0bb624e6ba391buzbee * distributed under the License is distributed on an "AS IS" BASIS,
1267bf885d62b1473c833bece1c9e0bb624e6ba391buzbee * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1367bf885d62b1473c833bece1c9e0bb624e6ba391buzbee * See the License for the specific language governing permissions and
1467bf885d62b1473c833bece1c9e0bb624e6ba391buzbee * limitations under the License.
1567bf885d62b1473c833bece1c9e0bb624e6ba391buzbee */
1667bf885d62b1473c833bece1c9e0bb624e6ba391buzbee
17fc0e3219edc9a5bf81b166e82fd5db2796eb6a0dBrian Carlstrom#ifndef ART_COMPILER_DEX_COMPILER_IR_H_
18fc0e3219edc9a5bf81b166e82fd5db2796eb6a0dBrian Carlstrom#define ART_COMPILER_DEX_COMPILER_IR_H_
1967bf885d62b1473c833bece1c9e0bb624e6ba391buzbee
200b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe#include "jni.h"
21bd25d4bff69e4775b7844d48630618b5ad8d3343Razvan A Lupusoru#include <string>
22a0e180632411f7fe0edf454e571c42209ee7b540Elliott Hughes#include <vector>
23f3e2cc4a38389aa75eb8ee3973a535254bf1c8d2Nicolas Geoffray
2441b175aba41c9365a1c53b8a1afbd17129c87c14Vladimir Marko#include "arch/instruction_set.h"
25b666f4805c8ae707ea6fd7f6c7f375e0b000dba8Mathieu Chartier#include "base/arena_allocator.h"
26b666f4805c8ae707ea6fd7f6c7f375e0b000dba8Mathieu Chartier#include "base/scoped_arena_allocator.h"
27a61f49539a59b610e557b5513695295639496750buzbee#include "base/timing_logger.h"
280b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe#include "invoke_type.h"
290b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe#include "safe_map.h"
3067bf885d62b1473c833bece1c9e0bb624e6ba391buzbee
3111d1b0c31ddd710d26068da8e0e4621002205b4bElliott Hughesnamespace art {
3211d1b0c31ddd710d26068da8e0e4621002205b4bElliott Hughes
3353c913bb71b218714823c8c87a1f92830c336f61Andreas Gampeclass ClassLinker;
340b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampeclass CompilerDriver;
3541b175aba41c9365a1c53b8a1afbd17129c87c14Vladimir Markoclass DexFile;
369c462086269324350516b3394d478f1d71a4b5d1Andreas Gampeclass Mir2Lir;
37311ca169f4727d46a55bdc8dfa0059719fa72b65buzbeeclass MIRGraph;
3853c913bb71b218714823c8c87a1f92830c336f61Andreas Gampe
3998a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimiconstexpr size_t kOptionStringMaxLength = 2048;
4098a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
4198a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi/**
4298a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi * Structure abstracting pass option values, which can be of type string or integer.
4398a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi */
4498a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimistruct OptionContent {
4598a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  OptionContent(const OptionContent& option) :
4698a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    type(option.type), container(option.container, option.type) {}
4798a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
4898a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  explicit OptionContent(const char* value) :
4998a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    type(kString), container(value) {}
5098a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
5198a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  explicit OptionContent(int value) :
5298a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    type(kInteger), container(value) {}
5398a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
5498a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  explicit OptionContent(int64_t value) :
5598a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    type(kInteger), container(value) {}
5698a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
5798a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  ~OptionContent() {
5898a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    if (type == kString) {
5998a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi      container.StringDelete();
6098a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    }
6198a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  }
6298a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
6398a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  /**
6498a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * Allows for a transparent display of the option content.
6598a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   */
6698a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  friend std::ostream& operator<<(std::ostream& out, const OptionContent& option) {
6798a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    if (option.type == kString) {
6898a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi      out << option.container.s;
6998a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    } else {
7098a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi      out << option.container.i;
7198a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    }
7298a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
7398a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    return out;
7498a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  }
7598a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
7698a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  inline const char* GetString() const {
7798a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    return container.s;
7898a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  }
7998a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
8098a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  inline int64_t GetInteger() const {
8198a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    return container.i;
8298a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  }
8398a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
8498a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  /**
8598a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * @brief Used to compare a string option value to a given @p value.
8698a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * @details Will return whether the internal string option is equal to
8798a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * the parameter @p value. It will return false if the type of the
8898a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * object is not a string.
8998a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * @param value The string to compare to.
9098a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * @return Returns whether the internal string option is equal to the
9198a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * parameter @p value.
9298a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  */
9398a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  inline bool Equals(const char* value) const {
9498a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    DCHECK(value != nullptr);
9598a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    if (type != kString) {
9698a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi      return false;
9798a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    }
9898a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    return !strncmp(container.s, value, kOptionStringMaxLength);
9998a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  }
10098a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
10198a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  /**
10298a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * @brief Used to compare an integer option value to a given @p value.
10398a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * @details Will return whether the internal integer option is equal to
10498a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * the parameter @p value. It will return false if the type of the
10598a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * object is not an integer.
10698a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * @param value The integer to compare to.
10798a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * @return Returns whether the internal integer option is equal to the
10898a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * parameter @p value.
10998a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  */
11098a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  inline bool Equals(int64_t value) const {
11198a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    if (type != kInteger) {
11298a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi      return false;
11398a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    }
11498a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    return container.i == value;
11598a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  }
11698a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
11798a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  /**
11898a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * Describes the type of parameters allowed as option values.
11998a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   */
12098a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  enum OptionType {
12198a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    kString = 0,
12298a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    kInteger
12398a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  };
12498a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
12598a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  OptionType type;
12698a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
12798a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi private:
12898a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  /**
12998a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   * Union containing the option value of either type.
13098a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi   */
13198a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  union OptionContainer {
13298a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    explicit OptionContainer(const OptionContainer& c, OptionType t) {
13398a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi      if (t == kString) {
13498a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi        DCHECK(c.s != nullptr);
13598a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi        s = strndup(c.s, kOptionStringMaxLength);
13698a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi      } else {
13798a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi        i = c.i;
13898a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi      }
13998a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    }
14098a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
14198a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    explicit OptionContainer(const char* value) {
14298a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi      DCHECK(value != nullptr);
14398a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi      s = strndup(value, kOptionStringMaxLength);
14498a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    }
14598a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
14698a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    explicit OptionContainer(int64_t value) : i(value) {}
14798a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    ~OptionContainer() {}
14898a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
14998a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    void StringDelete() {
15098a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi      if (s != nullptr) {
15198a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi        free(s);
15298a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi      }
15398a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    }
15498a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
15598a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    char* s;
15698a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi    int64_t i;
15798a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  };
15898a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
15998a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  OptionContainer container;
16098a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi};
16198a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi
162719ace4734f519c67fd2c1ff7a232c079309a615Elliott Hughesstruct CompilationUnit {
1630b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe  CompilationUnit(ArenaPool* pool, InstructionSet isa, CompilerDriver* driver, ClassLinker* linker);
16425724efbf84cce5734d1869e636cf59bc3f95941Vladimir Marko  ~CompilationUnit();
165a61f49539a59b610e557b5513695295639496750buzbee
166a61f49539a59b610e557b5513695295639496750buzbee  void StartTimingSplit(const char* label);
167a61f49539a59b610e557b5513695295639496750buzbee  void NewTimingSplit(const char* label);
168a61f49539a59b610e557b5513695295639496750buzbee  void EndTiming();
169a61f49539a59b610e557b5513695295639496750buzbee
170311ca169f4727d46a55bdc8dfa0059719fa72b65buzbee  /*
171311ca169f4727d46a55bdc8dfa0059719fa72b65buzbee   * Fields needed/generated by common frontend and generally used throughout
172311ca169f4727d46a55bdc8dfa0059719fa72b65buzbee   * the compiler.
173311ca169f4727d46a55bdc8dfa0059719fa72b65buzbee  */
1740b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe  CompilerDriver* const compiler_driver;
1750b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe  ClassLinker* const class_linker;        // Linker to resolve fields and methods.
1760b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe  const DexFile* dex_file;                // DexFile containing the method being compiled.
1770b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe  jobject class_loader;                   // compiling method's class loader.
1780b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe  uint16_t class_def_idx;                 // compiling method's defining class definition index.
1790b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe  uint32_t method_idx;                    // compiling method's index into method_ids of DexFile.
1800b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe  uint32_t access_flags;                  // compiling method's access flags.
1810b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe  InvokeType invoke_type;                 // compiling method's invocation type.
1820b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe  const char* shorty;                     // compiling method's shorty.
1830b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe  uint32_t disable_opt;                   // opt_control_vector flags.
1840b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe  uint32_t enable_debug;                  // debugControlVector flags.
185311ca169f4727d46a55bdc8dfa0059719fa72b65buzbee  bool verbose;
1860b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe  const InstructionSet instruction_set;
1870b9203e7996ee1856f620f95d95d8a273c43a3dfAndreas Gampe  const bool target64;
1881fd3346740dfb7f47be9922312b68a4227fada96buzbee
1891fd3346740dfb7f47be9922312b68a4227fada96buzbee  // TODO: move memory management to mir_graph, or just switch to using standard containers.
190862a76027076c341c26aa6cd4a30a7cdd6dc2143buzbee  ArenaAllocator arena;
19183cc7ae96d4176533dd0391a1591d321b0a87f4fVladimir Marko  ArenaStack arena_stack;  // Arenas for ScopedArenaAllocator.
192265091e581c9f643b37e7966890911f09e223269Brian Carlstrom
193700a402244a1a423da4f3ba8032459f4b65fa18fIan Rogers  std::unique_ptr<MIRGraph> mir_graph;   // MIR container.
1949c462086269324350516b3394d478f1d71a4b5d1Andreas Gampe  std::unique_ptr<Mir2Lir> cg;           // Target-specific codegen.
1955fe9af720048673e62ee29597a30bb9e54c903c5Ian Rogers  TimingLogger timings;
1968bceccec7eddff8cd872aa20505b4a3a6be60a16Jean Christophe Beyler  bool print_pass;                 // Do we want to print a pass or not?
197bd25d4bff69e4775b7844d48630618b5ad8d3343Razvan A Lupusoru
198bd25d4bff69e4775b7844d48630618b5ad8d3343Razvan A Lupusoru  /**
199bd25d4bff69e4775b7844d48630618b5ad8d3343Razvan A Lupusoru   * @brief Holds pass options for current pass being applied to compilation unit.
200bd25d4bff69e4775b7844d48630618b5ad8d3343Razvan A Lupusoru   * @details This is updated for every pass to contain the overridden pass options
201bd25d4bff69e4775b7844d48630618b5ad8d3343Razvan A Lupusoru   * that were specified by user. The pass itself will check this to see if the
202bd25d4bff69e4775b7844d48630618b5ad8d3343Razvan A Lupusoru   * default settings have been changed. The key is simply the option string without
203bd25d4bff69e4775b7844d48630618b5ad8d3343Razvan A Lupusoru   * the pass name.
204bd25d4bff69e4775b7844d48630618b5ad8d3343Razvan A Lupusoru   */
20598a26e17bb7ecfcd5c9b96394fdeca0a67cafcb3Jean-Philippe Halimi  SafeMap<const std::string, const OptionContent> overridden_pass_options;
20616da88c70c4bdbd97b8482be8b42103a52f22d59buzbee};
20716da88c70c4bdbd97b8482be8b42103a52f22d59buzbee
20811d1b0c31ddd710d26068da8e0e4621002205b4bElliott Hughes}  // namespace art
20911d1b0c31ddd710d26068da8e0e4621002205b4bElliott Hughes
210fc0e3219edc9a5bf81b166e82fd5db2796eb6a0dBrian Carlstrom#endif  // ART_COMPILER_DEX_COMPILER_IR_H_
211