aot_file.h 635 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (C) 2024 Xiaomi Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef AOT_FILE_H_
  6. #define AOT_FILE_H_
  7. #include "binary_file.h"
  8. namespace analyzer {
  9. class AoTFile : public BinaryFile
  10. {
  11. public:
  12. AoTFile(const char *file_name);
  13. Result Scan();
  14. Result ParseTargetInfo();
  15. AOTTargetInfo GetTargetInfo();
  16. std::string GetBinTypeName(uint16_t bin_type);
  17. std::string GetExectuionTypeName(uint16_t e_type);
  18. std::string GetExectuionMachineName(uint16_t e_machine);
  19. private:
  20. AOTTargetInfo target_info_;
  21. };
  22. } // namespace analyzer
  23. #endif