Skip to content

Commit

Permalink
Rename to omEvaluatorGetReferenceValue for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeurbach committed Mar 5, 2024
1 parent 2116461 commit 4762615
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/circt-c/Dialect/OM.h
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ omEvaluatorValueIsAReference(OMEvaluatorValue evaluatorValue);
/// Dereference a Reference EvaluatorValue. Emits an error and returns null if
/// the Reference cannot be dereferenced.
MLIR_CAPI_EXPORTED OMEvaluatorValue
omEvaluatorValueGetReference(OMEvaluatorValue evaluatorValue);
omEvaluatorValueGetReferenceValue(OMEvaluatorValue evaluatorValue);

//===----------------------------------------------------------------------===//
// ReferenceAttr API
Expand Down
3 changes: 2 additions & 1 deletion lib/Bindings/Python/OMModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,8 @@ PythonValue omEvaluatorValueToPythonValue(OMEvaluatorValue result) {
return Path(result);

if (omEvaluatorValueIsAReference(result))
return omEvaluatorValueToPythonValue(omEvaluatorValueGetReference(result));
return omEvaluatorValueToPythonValue(
omEvaluatorValueGetReferenceValue(result));

// If the field was a primitive, return the Attribute.
assert(omEvaluatorValueIsAPrimitive(result));
Expand Down
3 changes: 2 additions & 1 deletion lib/CAPI/Dialect/OM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ bool omEvaluatorValueIsAReference(OMEvaluatorValue evaluatorValue) {

/// Dereference a Reference EvaluatorValue. Emits an error and returns null if
/// the Reference cannot be dereferenced.
OMEvaluatorValue omEvaluatorValueGetReference(OMEvaluatorValue evaluatorValue) {
OMEvaluatorValue
omEvaluatorValueGetReferenceValue(OMEvaluatorValue evaluatorValue) {
// Assert the EvaluatorValue is a Reference.
assert(omEvaluatorValueIsAReference(evaluatorValue));

Expand Down

0 comments on commit 4762615

Please sign in to comment.