Skip to main content

Mojo function

is_triple

is_triple[name: StringLiteral[value], target: __mlir_type.!kgen.target = _current_target()]() -> Bool

Returns True if the target triple of the compiler matches the input and False otherwise.

Parameters:

  • name (StringLiteral): The name of the triple value.
  • target (__mlir_type.!kgen.target``): The triple value to be checked against.

Returns:

Bool: True if the triple matches and False otherwise.

Was this page helpful?