search for: somefn

Displaying 4 results from an estimated 4 matches for "somefn".

Did you mean: somef
2020 Aug 17
2
Exceptions and performance
...n and no check at all (simply ignore the error)? There's also the fact that explicit error checking lets the programmer > simplify the CFG explicitly. If you're calling two functions that don't > depend on any data flow between them, you can do something like: > > auto a = someFn(); > auto b = someOtherFn(); > if (!a || !b) > doSomeErrorHandlingStuffs(); > > Transforming exception-driven code into this structure would be an > invalid transform unless the compiler could prove that someOtherFn() has > no observable side effects. > I didn't...
2020 Aug 14
3
Exceptions and performance
On Thu, Aug 13, 2020 at 6:35 PM Haoran Xu <haoranxu510 at gmail.com> wrote: > > Thanks for the reply. > >> Sorry, yes. No difference between explicit error handling and >> exceptions. The difference is in all the functions that don't have >> explicit error handling but (in the exception-using equivalent code) >> aren't marked nothrow (where, without
2019 Sep 30
3
Adding support for vscale
On Tuesday, October 1, 2019, Jacob Lifshay <programmerjake at gmail.com> wrote: > On Mon, Sep 30, 2019 at 2:30 AM Sander De Smalen via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > > > I've posted two patches on Phabricator to add support for VScale in LLVM. Excellent! > > > > A brief recap on `vscale`: > > The scalable vector type in
2019 Oct 01
3
Adding support for vscale
...atches. it sounds very much like it's only suitable for statically-allocated arrays-of-vectorisable-types: typedef vec4 float[4]; // SEW=32,LMUL=4 probably static vec4 globalvec[1024]; // vscale == 1024 here or, would it be intended for use inside functions - again statically-allocated? int somefn(void) { static vec4 localvec[1024]; // vscale == 1024 here } *or*, would it be intended to be used like this? int somefn(num_of_vec4s) { static vec4 localvec[num_of_vec4s]; // vscale == dynamic, here } clarifying this in the documentation strings on vscale, perhaps even providing c-style exam...