Integrate LLVM at llvm/llvm-project@4d11daa659
Updates LLVM usage to match [4d11daa659a1](https://github.com/llvm/llvm-project/commit/4d11daa659a1) PiperOrigin-RevId: 339631220
This commit is contained in:
parent
fcb6b5d395
commit
3a6580bf75
|
@ -1,2 +1,2 @@
|
||||||
23ed570af1cc165afea1b70a533a4a39d6656501
|
4d11daa659a1833a85863ea920174da4d052a8ba
|
||||||
|
|
||||||
|
|
|
@ -2887,15 +2887,22 @@ namespace mhlo {
|
||||||
namespace {
|
namespace {
|
||||||
struct HLOInlinerInterface : public DialectInlinerInterface {
|
struct HLOInlinerInterface : public DialectInlinerInterface {
|
||||||
using DialectInlinerInterface::DialectInlinerInterface;
|
using DialectInlinerInterface::DialectInlinerInterface;
|
||||||
|
|
||||||
|
// Allow all call operations to be inlined.
|
||||||
|
bool isLegalToInline(Operation* call, Operation* callable,
|
||||||
|
bool wouldBeCloned) const final {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
// We don't have any special restrictions on what can be inlined into
|
// We don't have any special restrictions on what can be inlined into
|
||||||
// destination regions (e.g. while/conditional bodies). Always allow it.
|
// destination regions (e.g. while/conditional bodies). Always allow it.
|
||||||
bool isLegalToInline(Region* dest, Region* src,
|
bool isLegalToInline(Region* dest, Region* src, bool wouldBeCloned,
|
||||||
BlockAndValueMapping& valueMapping) const final {
|
BlockAndValueMapping& valueMapping) const final {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// Operations in mhlo dialect are always legal to inline since they are
|
// Operations in mhlo dialect are always legal to inline since they are
|
||||||
// pure.
|
// pure.
|
||||||
bool isLegalToInline(Operation*, Region*, BlockAndValueMapping&) const final {
|
bool isLegalToInline(Operation*, Region*, bool,
|
||||||
|
BlockAndValueMapping&) const final {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue