[AMDGPU] prevent shrinking udiv/urem if either operand is in (SignedMax,UnsignedMax...
[llvm-project.git] / llvm / lib / ExecutionEngine / Orc / RedirectionManager.cpp
bloba4b822bdff611a181052d886a1f641524ce1843a
1 //===---- RedirectionManager.cpp - Redirection manager interface in Orc ---===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "llvm/ExecutionEngine/Orc/RedirectionManager.h"
11 #define DEBUG_TYPE "orc"
13 using namespace llvm;
14 using namespace llvm::orc;
16 void RedirectionManager::anchor() {}
18 Error RedirectableSymbolManager::createRedirectableSymbols(
19 ResourceTrackerSP RT, SymbolMap InitialDests) {
20 auto &JD = RT->getJITDylib();
21 return JD.define(std::make_unique<RedirectableMaterializationUnit>(
22 *this, std::move(InitialDests)),
23 RT);