Tags: google/heir
Tags
Add elementwise mappable variation for rlwe_encode This change adds a new ElementwiseByOperandOpInterface method that allows an op to specify which dimensions of a tensor-typed operand should be mapped over. This is necessary to support having an elementwise op like lwe.rlwe_encode, whose input is a tensor<k x slots> and whose output is a tensor<k x lwe.lwe_plaintext<...>>. This is needed in turn because server-side secret.conceal lowers to an elementwise trivial_encrypt, which lowers to an elementwise encode + encrypt. The verifier is updated to ensure that the "mapped shape" (subset of dimensions specified by the interface as mappable) aligns across operands and the output. Then the ElementwiseToAffine pass is updated to use this interface to support lwe.rlwe_encode. PiperOrigin-RevId: 892523902
Integrate LLVM at llvm/llvm-project@909041e4802c Updates LLVM usage to match [909041e4802c](llvm/llvm-project@909041e4802c) PiperOrigin-RevId: 863352459
Integrate LLVM at llvm/llvm-project@14c00c05c13a Updates LLVM usage to match [14c00c05c13a](llvm/llvm-project@14c00c05c13a) PiperOrigin-RevId: 850765800
Integrate LLVM at llvm/llvm-project@0c2701fe7fa0 Updates LLVM usage to match [0c2701fe7fa0](llvm/llvm-project@0c2701fe7fa0) PiperOrigin-RevId: 837288411
Integrate LLVM at llvm/llvm-project@d28c07b7550a Updates LLVM usage to match [d28c07b7550a](llvm/llvm-project@d28c07b7550a) PiperOrigin-RevId: 813490970
Merge pull request #2156 from j2kun:partition-op PiperOrigin-RevId: 803179889