mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-17 08:01:20 -05:00
16 lines
409 B
C++
16 lines
409 B
C++
#include <concretelang/Analysis/Utils.h>
|
|
#include <mlir/Dialect/Arith/IR/Arith.h>
|
|
|
|
using ::concretelang::error::StringError;
|
|
|
|
namespace mlir {
|
|
namespace concretelang {
|
|
std::string locationString(mlir::Location loc) {
|
|
auto location = std::string();
|
|
auto locationStream = llvm::raw_string_ostream(location);
|
|
loc->print(locationStream);
|
|
return location;
|
|
}
|
|
} // namespace concretelang
|
|
} // namespace mlir
|