LLVM dialect: prefix operations that correspond to intrinsics with "intr."
authorAlex Zinenko <zinenko@google.com>
Tue, 20 Aug 2019 13:38:28 +0000 (06:38 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 20 Aug 2019 13:38:52 +0000 (06:38 -0700)
commit0f974817b5a1103ce5a17450dca7f09a16a4bd13
treee995e63370910ea7994a822519fe82caee4775b6
parentf55ac5c07643efa28a5bb621b08c0e5dc2f97f84
LLVM dialect: prefix operations that correspond to intrinsics with "intr."

LLVM intrinsics have an open name space and their names can potentially overlap
with names of LLVM instructions (LLVM intrinsics are functions, not
instructions).  In MLIR, LLVM intrinsics are modeled as operations, so it needs
to make sure their names cannot clash with the instructions.  Use the "intr."
prefix for intrinsics in the LLVM dialect.

PiperOrigin-RevId: 264372173
mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
mlir/include/mlir/Dialect/VectorOps/VectorOps.td
mlir/test/Conversion/VectorToLLVM/vector-to-llvm.mlir
mlir/test/Target/llvmir-intrinsics.mlir