mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 03:56:16 +08:00
NFC: Rename FuncBuilder to OpBuilder and refactor to take a top level region instead of a function.
PiperOrigin-RevId: 251563898
This commit is contained in:
committed by
Mehdi Amini
parent
f59f64e838
commit
f1b848e470
@@ -77,7 +77,7 @@ void AddDefaultStatsPass::runWithConfig(SolverContext &solverContext,
|
||||
for (auto *arg : func.getArguments()) {
|
||||
if (!config.isHandledType(arg->getType()))
|
||||
continue;
|
||||
FuncBuilder b(func);
|
||||
OpBuilder b(func.getBody());
|
||||
APFloat minValue(-1.0f);
|
||||
APFloat maxValue(1.0f);
|
||||
ElementsAttr layerStats = DenseFPElementsAttr::get(
|
||||
@@ -102,7 +102,7 @@ void AddDefaultStatsPass::runWithConfig(SolverContext &solverContext,
|
||||
if (!config.isHandledType(originalResult->getType()))
|
||||
return;
|
||||
|
||||
FuncBuilder b(op->getBlock(), ++op->getIterator());
|
||||
OpBuilder b(op->getBlock(), ++op->getIterator());
|
||||
|
||||
APFloat minValue(-1.0f);
|
||||
APFloat maxValue(1.0f);
|
||||
|
||||
Reference in New Issue
Block a user