[XLA] Fix signatures of c_foo functions and add c_any_of.
[XLA] Fix signatures of c_foo functions and add c_any_of.

Embarrassingly, we were often copying the container in c_foo.  Oops.
This fixes that, and also adds some perfect forwarding that was missing.
It also adds a c_any_of function.

PiperOrigin-RevId: 187483435

dancingdan/tensorflow,benoitsteiner/tensorflow-xsmm,xzturn/tensorflow,jendap/tensorflow,ZhangXinNan/tensorflow,yongtang/tensorflow,gunan/tensorflow,chemelnucfin/tensorflow,kobejean/tensorflow,theflofly/tensorflow,yongtang/tensorflow,seanli9jan/tensorflow,ZhangXinNan/tensorflow,DavidNorman/tensorflow,davidzchen/tensorflow,jalexvig/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,snnn/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,ageron/tensorflow,chemelnucfin/tensorflow,Bismarrck/tensorflow,tensorflow/tensorflow,ageron/tensorflow,aselle/tensorflow,nburn42/tensorflow,aam-at/tensorflow,yongtang/tensorflow,yongtang/tensorflow,meteorcloudy/tensorflow,kobejean/tensorflow,girving/tensorflow,xodus7/tensorflow,allenlavoie/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,apark263/tensorflow,aselle/tensorflow,aselle/tensorflow,hfp/tensorflow-xsmm,renyi533/tensorflow,tensorflow/tensorflow,lukeiwanski/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ZhangXinNan/tensorflow,eaplatanios/tensorflow,drpngx/tensorflow,renyi533/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,drpngx/tensorflow,xodus7/tensorflow,petewarden/tensorflow,dongjoon-hyun/tensorflow,jhseu/tensorflow,arborh/tensorflow,manipopopo/tensorflow,aselle/tensorflow,jbedorf/tensorflow,yongtang/tensorflow,xzturn/tensorflow,tensorflow/tensorflow,ZhangXinNan/tensorflow,dancingdan/tensorflow,seanli9jan/tensorflow,Intel-tensorflow/tensorflow,arborh/tensorflow,theflofly/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,manipopopo/tensorflow,aselle/tensorflow,petewarden/tensorflow,xzturn/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,manipopopo/tensorflow,nburn42/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,dendisuhubdy/tensorflow,jalexvig/tensorflow,kevin-coder/tensorflow-fork,jalexvig/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,theflofly/tensorflow,gunan/tensorflow,arborh/tensorflow,alsrgv/tensorflow,annarev/tensorflow,drpngx/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,AnishShah/tensorflow,girving/tensorflow,alshedivat/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jart/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gojira/tensorflow,hfp/tensorflow-xsmm,seanli9jan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,annarev/tensorflow,meteorcloudy/tensorflow,adit-chandra/tensorflow,jhseu/tensorflow,theflofly/tensorflow,yongtang/tensorflow,jendap/tensorflow,cxxgtxy/tensorflow,ppwwyyxx/tensorflow,annarev/tensorflow,eaplatanios/tensorflow,Bismarrck/tensorflow,hfp/tensorflow-xsmm,apark263/tensorflow,xzturn/tensorflow,nburn42/tensorflow,Bismarrck/tensorflow,adit-chandra/tensorflow,ZhangXinNan/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xodus7/tensorflow,petewarden/tensorflow,chemelnucfin/tensorflow,caisq/tensorflow,gojira/tensorflow,aam-at/tensorflow,gautam1858/tensorflow,chemelnucfin/tensorflow,dendisuhubdy/tensorflow,ageron/tensorflow,xzturn/tensorflow,davidzchen/tensorflow,caisq/tensorflow,allenlavoie/tensorflow,jalexvig/tensorflow,kobejean/tensorflow,meteorcloudy/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,ZhangXinNan/tensorflow,xzturn/tensorflow,kevin-coder/tensorflow-fork,dendisuhubdy/tensorflow,jbedorf/tensorflow,seanli9jan/tensorflow,yongtang/tensorflow,AnishShah/tensorflow,jalexvig/tensorflow,ageron/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,girving/tensorflow,alshedivat/tensorflow,davidzchen/tensorflow,brchiu/tensorflow,Intel-Corporation/tensorflow,gojira/tensorflow,girving/tensorflow,kevin-coder/tensorflow-fork,theflofly/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ghchinoy/tensorflow,caisq/tensorflow,Intel-Corporation/tensorflow,manipopopo/tensorflow,freedomtan/tensorflow,jalexvig/tensorflow,chemelnucfin/tensorflow,paolodedios/tensorflow,meteorcloudy/tensorflow,kobejean/tensorflow,kevin-coder/tensorflow-fork,aselle/tensorflow,gunan/tensorflow,AnishShah/tensorflow,benoitsteiner/tensorflow-xsmm,Bismarrck/tensorflow,paolodedios/tensorflow,theflofly/tensorflow,hehongliang/tensorflow,Xeralux/tensorflow,ppwwyyxx/tensorflow,adit-chandra/tensorflow,asimshankar/tensorflow,jendap/tensorflow,gunan/tensorflow,gunan/tensorflow,allenlavoie/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,dancingdan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xodus7/tensorflow,annarev/tensorflow,petewarden/tensorflow,manipopopo/tensorflow,Intel-tensorflow/tensorflow,alshedivat/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,benoitsteiner/tensorflow-xsmm,hfp/tensorflow-xsmm,freedomtan/tensorflow,gunan/tensorflow,ghchinoy/tensorflow,apark263/tensorflow,xodus7/tensorflow,meteorcloudy/tensorflow,jart/tensorflow,frreiss/tensorflow-fred,ageron/tensorflow,eaplatanios/tensorflow,alshedivat/tensorflow,Bismarrck/tensorflow,Intel-Corporation/tensorflow,ghchinoy/tensorflow,snnn/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow,asimshankar/tensorflow,seanli9jan/tensorflow,jbedorf/tensorflow,karllessard/tensorflow,brchiu/tensorflow,dancingdan/tensorflow,jhseu/tensorflow,ZhangXinNan/tensorflow,eaplatanios/tensorflow,kobejean/tensorflow,chemelnucfin/tensorflow,eaplatanios/tensorflow,gunan/tensorflow,benoitsteiner/tensorflow-xsmm,aam-at/tensorflow,sarvex/tensorflow,seanli9jan/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,seanli9jan/tensorflow,caisq/tensorflow,lukeiwanski/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,alshedivat/tensorflow,davidzchen/tensorflow,ppwwyyxx/tensorflow,aselle/tensorflow,manipopopo/tensorflow,ghchinoy/tensorflow,drpngx/tensorflow,apark263/tensorflow,girving/tensorflow,jart/tensorflow,jart/tensorflow,apark263/tensorflow,gojira/tensorflow,freedomtan/tensorflow,benoitsteiner/tensorflow-xsmm,arborh/tensorflow,annarev/tensorflow,paolodedios/tensorflow,paolodedios/tensorflow,dancingdan/tensorflow,kobejean/tensorflow,aam-at/tensorflow,sarvex/tensorflow,cxxgtxy/tensorflow,davidzchen/tensorflow,dongjoon-hyun/tensorflow,lukeiwanski/tensorflow,petewarden/tensorflow,yanchen036/tensorflow,brchiu/tensorflow,hfp/tensorflow-xsmm,asimshankar/tensorflow,jart/tensorflow,dongjoon-hyun/tensorflow,dendisuhubdy/tensorflow,benoitsteiner/tensorflow-xsmm,gautam1858/tensorflow,benoitsteiner/tensorflow-xsmm,drpngx/tensorflow,karllessard/tensorflow,aselle/tensorflow,cxxgtxy/tensorflow,aselle/tensorflow,sarvex/tensorflow,frreiss/tensorflow-fred,gojira/tensorflow,Intel-Corporation/tensorflow,gojira/tensorflow,kevin-coder/tensorflow-fork,annarev/tensorflow,davidzchen/tensorflow,nburn42/tensorflow,adit-chandra/tensorflow,asimshankar/tensorflow,davidzchen/tensorflow,aam-at/tensorflow,meteorcloudy/tensorflow,Intel-tensorflow/tensorflow,benoitsteiner/tensorflow-xsmm,caisq/tensorflow,alshedivat/tensorflow,apark263/tensorflow,frreiss/tensorflow-fred,dongjoon-hyun/tensorflow,AnishShah/tensorflow,chemelnucfin/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,Xeralux/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_tf_optimizer,arborh/tensorflow,jbedorf/tensorflow,hehongliang/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,xodus7/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,arborh/tensorflow,DavidNorman/tensorflow,nburn42/tensorflow,jbedorf/tensorflow,jalexvig/tensorflow,snnn/tensorflow,girving/tensorflow,Intel-Corporation/tensorflow,arborh/tensorflow,arborh/tensorflow,davidzchen/tensorflow,xodus7/tensorflow,jart/tensorflow,aldian/tensorflow,DavidNorman/tensorflow,karllessard/tensorflow,xzturn/tensorflow,gautam1858/tensorflow,jbedorf/tensorflow,nburn42/tensorflow,xodus7/tensorflow,yanchen036/tensorflow,tensorflow/tensorflow-pywrap_saved_model,DavidNorman/tensorflow,jendap/tensorflow,ppwwyyxx/tensorflow,Xeralux/tensorflow,alsrgv/tensorflow,ppwwyyxx/tensorflow,adit-chandra/tensorflow,dancingdan/tensorflow,aam-at/tensorflow,AnishShah/tensorflow,kobejean/tensorflow,alsrgv/tensorflow,davidzchen/tensorflow,gojira/tensorflow,Bismarrck/tensorflow,Xeralux/tensorflow,brchiu/tensorflow,aldian/tensorflow,alsrgv/tensorflow,dongjoon-hyun/tensorflow,asimshankar/tensorflow,alshedivat/tensorflow,adit-chandra/tensorflow,ppwwyyxx/tensorflow,ageron/tensorflow,Intel-tensorflow/tensorflow,karllessard/tensorflow,meteorcloudy/tensorflow,xodus7/tensorflow,adit-chandra/tensorflow,Xeralux/tensorflow,caisq/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,DavidNorman/tensorflow,xzturn/tensorflow,yanchen036/tensorflow,ZhangXinNan/tensorflow,aam-at/tensorflow,yanchen036/tensorflow,gunan/tensorflow,caisq/tensorflow,hfp/tensorflow-xsmm,alshedivat/tensorflow,renyi533/tensorflow,yongtang/tensorflow,dendisuhubdy/tensorflow,asimshankar/tensorflow,seanli9jan/tensorflow,dongjoon-hyun/tensorflow,jendap/tensorflow,dongjoon-hyun/tensorflow,aldian/tensorflow,annarev/tensorflow,jendap/tensorflow,ZhangXinNan/tensorflow,Xeralux/tensorflow,karllessard/tensorflow,manipopopo/tensorflow,alshedivat/tensorflow,yongtang/tensorflow,dancingdan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ageron/tensorflow,meteorcloudy/tensorflow,gojira/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,gautam1858/tensorflow,alsrgv/tensorflow,hfp/tensorflow-xsmm,lukeiwanski/tensorflow,eaplatanios/tensorflow,yanchen036/tensorflow,paolodedios/tensorflow,adit-chandra/tensorflow,ghchinoy/tensorflow,hehongliang/tensorflow,gautam1858/tensorflow,jbedorf/tensorflow,dancingdan/tensorflow,gautam1858/tensorflow,jhseu/tensorflow,paolodedios/tensorflow,adit-chandra/tensorflow,lukeiwanski/tensorflow,frreiss/tensorflow-fred,ghchinoy/tensorflow,manipopopo/tensorflow,AnishShah/tensorflow,kevin-coder/tensorflow-fork,kevin-coder/tensorflow-fork,gautam1858/tensorflow,Intel-tensorflow/tensorflow,AnishShah/tensorflow,dendisuhubdy/tensorflow,brchiu/tensorflow,Xeralux/tensorflow,allenlavoie/tensorflow,jbedorf/tensorflow,AnishShah/tensorflow,davidzchen/tensorflow,Intel-Corporation/tensorflow,kevin-coder/tensorflow-fork,jalexvig/tensorflow,apark263/tensorflow,chemelnucfin/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,kobejean/tensorflow,brchiu/tensorflow,aldian/tensorflow,snnn/tensorflow,apark263/tensorflow,asimshankar/tensorflow,apark263/tensorflow,seanli9jan/tensorflow,alshedivat/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ppwwyyxx/tensorflow,aldian/tensorflow,benoitsteiner/tensorflow-xsmm,dancingdan/tensorflow,hfp/tensorflow-xsmm,jart/tensorflow,DavidNorman/tensorflow,renyi533/tensorflow,jart/tensorflow,hfp/tensorflow-xsmm,AnishShah/tensorflow,DavidNorman/tensorflow,nburn42/tensorflow,Bismarrck/tensorflow,sarvex/tensorflow,hfp/tensorflow-xsmm,renyi533/tensorflow,alsrgv/tensorflow,snnn/tensorflow,ageron/tensorflow,aselle/tensorflow,brchiu/tensorflow,apark263/tensorflow,freedomtan/tensorflow,chemelnucfin/tensorflow,Xeralux/tensorflow,hfp/tensorflow-xsmm,renyi533/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aselle/tensorflow,frreiss/tensorflow-fred,xzturn/tensorflow,drpngx/tensorflow,yongtang/tensorflow,kobejean/tensorflow,dongjoon-hyun/tensorflow,DavidNorman/tensorflow,ghchinoy/tensorflow,girving/tensorflow,frreiss/tensorflow-fred,alsrgv/tensorflow,allenlavoie/tensorflow,allenlavoie/tensorflow,cxxgtxy/tensorflow,chemelnucfin/tensorflow,arborh/tensorflow,karllessard/tensorflow,jbedorf/tensorflow,aam-at/tensorflow,Bismarrck/tensorflow,dancingdan/tensorflow,eaplatanios/tensorflow,theflofly/tensorflow,dendisuhubdy/tensorflow,lukeiwanski/tensorflow,tensorflow/tensorflow,chemelnucfin/tensorflow,sarvex/tensorflow,asimshankar/tensorflow,snnn/tensorflow,jalexvig/tensorflow,hehongliang/tensorflow,caisq/tensorflow,jhseu/tensorflow,aam-at/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,drpngx/tensorflow,jendap/tensorflow,tensorflow/tensorflow,allenlavoie/tensorflow,cxxgtxy/tensorflow,snnn/tensorflow,renyi533/tensorflow,alsrgv/tensorflow,paolodedios/tensorflow,renyi533/tensorflow,petewarden/tensorflow,lukeiwanski/tensorflow,Intel-tensorflow/tensorflow,dongjoon-hyun/tensorflow,snnn/tensorflow,xodus7/tensorflow,ageron/tensorflow,Bismarrck/tensorflow,Intel-tensorflow/tensorflow,aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alsrgv/tensorflow,meteorcloudy/tensorflow,jbedorf/tensorflow,jendap/tensorflow,jart/tensorflow,allenlavoie/tensorflow,ageron/tensorflow,jalexvig/tensorflow,Xeralux/tensorflow,arborh/tensorflow,tensorflow/tensorflow,petewarden/tensorflow,alsrgv/tensorflow,Intel-Corporation/tensorflow,ppwwyyxx/tensorflow,nburn42/tensorflow,caisq/tensorflow,ageron/tensorflow,snnn/tensorflow,eaplatanios/tensorflow,kevin-coder/tensorflow-fork,cxxgtxy/tensorflow,Bismarrck/tensorflow,gunan/tensorflow,jart/tensorflow,arborh/tensorflow,lukeiwanski/tensorflow,theflofly/tensorflow,dendisuhubdy/tensorflow,girving/tensorflow,brchiu/tensorflow,kevin-coder/tensorflow-fork,dendisuhubdy/tensorflow,karllessard/tensorflow,eaplatanios/tensorflow,nburn42/tensorflow,paolodedios/tensorflow,jhseu/tensorflow,ppwwyyxx/tensorflow,nburn42/tensorflow,freedomtan/tensorflow,gojira/tensorflow,Xeralux/tensorflow,jendap/tensorflow,sarvex/tensorflow,kobejean/tensorflow,davidzchen/tensorflow,allenlavoie/tensorflow,xzturn/tensorflow,aldian/tensorflow,alsrgv/tensorflow,freedomtan/tensorflow,theflofly/tensorflow,snnn/tensorflow,ghchinoy/tensorflow,lukeiwanski/tensorflow,ghchinoy/tensorflow,xzturn/tensorflow,eaplatanios/tensorflow,arborh/tensorflow,DavidNorman/tensorflow,Xeralux/tensorflow,cxxgtxy/tensorflow,dendisuhubdy/tensorflow,ZhangXinNan/tensorflow,jendap/tensorflow,ppwwyyxx/tensorflow,xodus7/tensorflow,eaplatanios/tensorflow,sarvex/tensorflow,seanli9jan/tensorflow,adit-chandra/tensorflow,yanchen036/tensorflow,jhseu/tensorflow,hehongliang/tensorflow,ageron/tensorflow,paolodedios/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,jhseu/tensorflow,paolodedios/tensorflow,asimshankar/tensorflow,brchiu/tensorflow,nburn42/tensorflow,gunan/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,freedomtan/tensorflow,manipopopo/tensorflow,girving/tensorflow,kobejean/tensorflow,dongjoon-hyun/tensorflow,petewarden/tensorflow,xzturn/tensorflow,dancingdan/tensorflow,dongjoon-hyun/tensorflow,alsrgv/tensorflow,freedomtan/tensorflow,allenlavoie/tensorflow,gunan/tensorflow,renyi533/tensorflow,renyi533/tensorflow,caisq/tensorflow,yanchen036/tensorflow,AnishShah/tensorflow,jalexvig/tensorflow,karllessard/tensorflow,davidzchen/tensorflow,Intel-Corporation/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,theflofly/tensorflow,Bismarrck/tensorflow,drpngx/tensorflow,renyi533/tensorflow,ZhangXinNan/tensorflow,apark263/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,hehongliang/tensorflow,benoitsteiner/tensorflow-xsmm,brchiu/tensorflow,meteorcloudy/tensorflow,cxxgtxy/tensorflow,girving/tensorflow,yanchen036/tensorflow,lukeiwanski/tensorflow,theflofly/tensorflow,renyi533/tensorflow,theflofly/tensorflow,jendap/tensorflow,drpngx/tensorflow,gojira/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,snnn/tensorflow,benoitsteiner/tensorflow-xsmm,asimshankar/tensorflow,allenlavoie/tensorflow,alshedivat/tensorflow,jhseu/tensorflow,yongtang/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gojira/tensorflow,girving/tensorflow,adit-chandra/tensorflow,manipopopo/tensorflow,ghchinoy/tensorflow,annarev/tensorflow,ghchinoy/tensorflow,aam-at/tensorflow,gautam1858/tensorflow,gunan/tensorflow,AnishShah/tensorflow,brchiu/tensorflow,drpngx/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,chemelnucfin/tensorflow,DavidNorman/tensorflow,annarev/tensorflow,manipopopo/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jbedorf/tensorflow,hehongliang/tensorflow