search for: optionalstorag

Displaying 8 results from an estimated 8 matches for "optionalstorag".

Did you mean: optionalstorage
2018 Jan 24
2
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...+ llvm/trunk/include/llvm/ADT/Optional.h Thu Jan 18 03:26:24 2018 > @@ -27,139 +27,173 @@ > > namespace llvm { > > -template <typename T> class Optional { > +namespace optional_detail { > +/// Storage for any type. > +template <typename T, bool IsPodLike> struct OptionalStorage { > AlignedCharArrayUnion<T> storage; > bool hasVal = false; > > -public: > - using value_type = T; > - > - Optional(NoneType) {} > - explicit Optional() {} > - > - Optional(const T &y) : hasVal(true) { new (storage.buffer) T(y); } > + Optional...
2018 Jan 24
0
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...tional.h Thu Jan 18 03:26:24 2018 >> @@ -27,139 +27,173 @@ >> >> namespace llvm { >> >> -template <typename T> class Optional { >> +namespace optional_detail { >> +/// Storage for any type. >> +template <typename T, bool IsPodLike> struct OptionalStorage { >> AlignedCharArrayUnion<T> storage; >> bool hasVal = false; >> >> -public: >> - using value_type = T; >> - >> - Optional(NoneType) {} >> - explicit Optional() {} >> - >> - Optional(const T &y) : hasVal(true) { new (...
2018 Jan 24
1
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...gt;> @@ -27,139 +27,173 @@ > >> > >> namespace llvm { > >> > >> -template <typename T> class Optional { > >> +namespace optional_detail { > >> +/// Storage for any type. > >> +template <typename T, bool IsPodLike> struct OptionalStorage { > >> AlignedCharArrayUnion<T> storage; > >> bool hasVal = false; > >> > >> -public: > >> - using value_type = T; > >> - > >> - Optional(NoneType) {} > >> - explicit Optional() {} > >> - > >>...
2019 Jan 24
2
LLVM Kaleidoscope : Compiling to Object Code - Segmentation Fault
...m using release build of llvm, actually I don't know whether that is the root cause or not. I also run through valgrind, it seems like a invalid read from stack. |||Error Summary: | |1 errors in context 1 of 1: ==4153== Invalid read of size 1 ==4153==    at 0x4AFEE0: llvm::optional_detail::OptionalStorage<llvm::Reloc::Model, true>::OptionalStorage(llvm::optional_detail::OptionalStorage<llvm::Reloc::Model, true> const&) (in /home/preejackie/kld/toy) ==4153==    by 0x4B098D: llvm::RegisterTargetMachine<llvm::X86TargetMachine>::Allocator(llvm::Target const&, llvm::Triple...
2019 Jan 24
2
LLVM Kaleidoscope : Compiling to Object Code - Segmentation Fault
...iling llvm IR to object code tutorial, code in the listings breaks and causes a segmentation fault. After some investigation through gdb, probably this constructor call, causing the segfault. |Program received signal SIGSEGV, Segmentation fault.|| ||0x00000000004afee0 in llvm::optional_detail::OptionalStorage<llvm::Reloc::Model, true>::OptionalStorage(llvm::optional_detail::OptionalStorage<llvm::Reloc::Model, true> const&) ()| |Source code: | TargetOptions opt; autoRM =Optional<Reloc::Model>(); autoTheTargetMachine = Target->createTargetMachine(TargetTriple, CPU, Features,...
2018 Oct 01
2
Ubuntu LLVM packages incompatible with clang built projects?
...>> release branch. >>> >>> My colleague submitted a patch that fixed the issue for us: >>> * https://reviews.llvm.org/D50710 >>> >>> I no longer have a copy of the error we were seeing to see if it was the >>> same, but the fix is to llvm::OptionalStorage and your error message >>> involves llvm::Optional. The patch removes a GCC specific ifdef, and >>> hopefully fixes the issue that made that necessary in the first place, but >>> we never really knew how the GCC miscompilation was expressed. >>> >>> It...
2018 Sep 28
3
Ubuntu LLVM packages incompatible with clang built projects?
...s with mixing GCC/Clang builds when testing the 7.0 > release branch. > > My colleague submitted a patch that fixed the issue for us: > * https://reviews.llvm.org/D50710 > > I no longer have a copy of the error we were seeing to see if it was the > same, but the fix is to llvm::OptionalStorage and your error message > involves llvm::Optional. The patch removes a GCC specific ifdef, and > hopefully fixes the issue that made that necessary in the first place, but > we never really knew how the GCC miscompilation was expressed. > > It would be interesting to know whether th...
2018 Sep 27
2
Ubuntu LLVM packages incompatible with clang built projects?
Hi folks, Not sure if this is the right mailing list target, but I'm trying out the new LLVM 7.0 packages found at http://apt.llvm.org by porting over an existing LLVM 6.0 project of ours to the new version. In doing so, I found that the executable always segfaulted at the same spot with no explanation: 0x0000000000fefe33 in