compile_module_to_llvm_ir.cc
imports tsl/platform/path.himports xla/stream_executor/platform.h
SHA-2565a34cacaba22cf6030502ae82bcd28103a3d684ee784d1a3427a3b0e11ed9374
MaleculeMd(In₆)
Evidence
1/* Copyright 2023 The OpenXLA Authors.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is …
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15
16#include "xla/service/gpu/compile_module_to_llvm_ir.h"
17
18#include <stdlib.h>
19
20#include <cstdint>
21#include <memory>
22#include <optional>
23#include <string>
24#include <utility>
25#include <vector>
26
27#include "absl/log/check.h"
28#include "absl/log/log.h"
29#include "absl/status/status.h"
30#include "absl/status/statusor.h"
31#include "absl/strings/str_cat.h"
32#include "absl/strings/str_format.h"
33#include "absl/strings/string_view.h"
34#include "llvm/AsmParser/Parser.h"
35#include "llvm/IR/DiagnosticInfo.h"
36#include "llvm/IR/DiagnosticPrinter.h"
37#include "llvm/IR/GlobalVariable.h"
38#include "llvm/IR/LLVMContext.h"
39#include "llvm/IR/Module.h"
40#include "llvm/IR/Verifier.h"
41#include "llvm/Linker/Linker.h"
42#include "llvm/TargetParser/Triple.h"
43#include "llvm/Transforms/Utils/SplitModule.h"
44#include "mlir/IR/Diagnostics.h"
45#include "mlir/IR/DialectRegistry.h"
46#include "mlir/Pass/PassManager.h"
47#include "mlir/Support/LLVM.h"
48#include "mlir/Support/LogicalResult.h"
49#include "xla/backends/gpu/runtime/sequential_thunk.h"
50#include "xla/backends/gpu/runtime/thunk.h"
51#include "xla/hlo/analysis/hlo_ordering.h"
52#include "xla/hlo/analysis/symbolic_expr.h"
53#include "xla/hlo/ir/hlo_instruction.h"
54#include "xla/hlo/ir/hlo_module.h"
55#include "xla/service/buffer_assignment.h"
56#include "xla/service/buffer_value.h"
57#include "xla/service/dump.h"
58#include "xla/service/gpu/alias_info.h"
258:68… ule();
259
260 // This won't record values for calls that error out (because if they error
261 // out we have no way of telling how far through the process we got).
262 uint64_t end_usecs = tsl::Env::Default …