Commit Graph

3858 Commits

Author SHA1 Message Date
Diego Torres Quintanilla
952cf58b0d Fixed codemirror mode to appropriate value. Syntax highlighting in jupyter lab should work when https://github.com/jupyterlab/jupyterlab/pull/2187 is merged. 2017-05-12 09:14:05 +02:00
Axel Naumann
4922050e9b Create lit feature for stand-alone / non-embedded cling and use it! 2017-05-11 16:44:31 +02:00
Axel Naumann
a3b7f8b2b5 Fix C comments with slash. By Roman Zulak! 2017-05-11 09:00:00 +02:00
Axel Naumann
875a597aff Move target init early. 2017-05-10 08:29:53 +02:00
Axel Naumann
8c3afd1d0a Link against all available targets. 2017-05-09 09:59:05 +02:00
Axel Naumann
c7fcec5a46 Typo causing unrelated failure. 2017-05-09 08:59:40 +02:00
Axel Naumann
053223229e Enable all available targets, for instance for the cuda backend. 2017-05-08 14:59:05 +02:00
Axel Naumann
dec2b8aa60 Use LookupHelper cache instead of local static. 2017-05-08 11:44:07 +02:00
Axel Naumann
cb2384fc55 Buffer Interpreter-local std::string lookup; ValuePrinter needs it. 2017-05-08 11:44:07 +02:00
Axel Naumann
ef501e64a0 There is no reason to force a const LookupHelper. 2017-05-08 11:44:07 +02:00
Axel Naumann
ec27958540 Fix unitialized member (Coverity 94184). 2017-05-08 09:44:08 +02:00
Axel Naumann
de06e519fd Do not print std::string through Interpreter.
Increases performance for all printValue() calls that do go through the Interpreter.
2017-05-05 18:44:38 +02:00
Axel Naumann
e25880b49d Do not allocate Values/strings for printing simple types.
Still missing is calling a printValue(std::string) overload from printUnpackedClingValue.
That is needed for optimizing the generic printValue() invocation through the interpreter:
it should not have to create a *second* Value for printing the string returned from printValue().
2017-05-05 18:44:38 +02:00
Axel Naumann
93869de6c7 Test ROOT-7016. 2017-05-05 12:14:05 +02:00
Axel Naumann
b7b1b9ced0 Copy int[12][13]* through int* (ROOT-7016). 2017-05-05 12:14:05 +02:00
Axel Naumann
871b304f8c Assemble array dimensions recursively (ROOT-7016). 2017-05-05 12:14:05 +02:00
Sebastian Uhl
6296dd2bc4 Re-enable C++14 for GCC 4.9 in Interpretator
GCC 4.9 only defines '__cplusplus' to the value 201300L and not to
201402L as expected for C++14. This makes the check for the available
C++ standards in the interpreter fail to enable C++14 (which in turn
means that ROOT cannot be compiled with GCC 4.9 if C++14 was enabled in
Cmake). Similarly, for C++17 apart from the proper value 201703L other
values seems to be floating around (e.g. 201406L as defined by the
version of LLVM included with ROOT). The requirement for '__cplusplus_'
to enable certain C++ standards in the interpreter is made less strict
and just needs to be larger than the previous final value.

This basically reinstates commit
0a62e34aa86b812651cfcf9526ba03b975adaa5c which was undone by commit
702298d9ad83866d0be62f0422c03ac8ea6687f1.
2017-05-04 15:59:08 +02:00
Axel Naumann
35915644ad With the fix for llvm bug 19668: enable inlining also for GCC! 2017-05-04 10:14:19 +02:00
David Abdurachmanov
68d860707b Enable C++17 (C++1z) in Interpreter
This is a must if everything else is compiled in C++17 mode. Not having
C++17 enabled within Interpreter caused errors in CMSSW.

Signed-off-by: David Abdurachmanov <davidlt@cern.ch>
2017-05-03 18:59:45 +02:00
Raphael Isemann
b2ed65dbbf Remove unimplemented shouldIgnore from IncrementalParser. (#545)
The function implementation was moved to a static function in
the DeclCollector in commit 858120920f51a3ea8f689d19f2a2fa1cc3981eb1
about 'Emit Decls as DeclCollector sees them'.
2017-05-03 11:44:18 +02:00
Axel Naumann
b9dbe1614f Update notebook, esp the kernelspec name. 2017-05-02 11:59:10 +02:00
Axel Naumann
8e2700d753 Fix ZMQ issues with threading:
run all ZMQ send()s from the main thread; run cling in a sub-thread.
2017-05-02 11:59:10 +02:00
Axel Naumann
2f13d674eb Do not echo expression results; kernel handles it. 2017-05-02 11:59:10 +02:00
Axel Naumann
675a67e57f Offer non-echoing process(). 2017-05-02 11:59:10 +02:00
Axel Naumann
97ec4b8e8a Add doc on the sideband mechanism. 2017-05-02 11:59:09 +02:00
Axel Naumann
fba944ebf7 Fix noexcept for __cxa_atexit. 2017-04-29 15:14:09 +02:00
Axel Naumann
795adc43e1 Point to authoritative repos; fixes cling builds with cpt. 2017-04-28 18:59:24 +02:00
Axel Naumann
a2cc4528e6 Update location of Jupyter kernel. 2017-04-28 18:59:24 +02:00
Axel Naumann
909ce12929 Revert "Remove unused members of MetaProcessor in Release."
This reverts commit e7833174c491bb49a76739306f9f5108357ac149.
It causes problems if library clients have incompatible NDEBUG settings.
2017-04-27 08:14:47 +02:00
Santiago Castro
1b831f04f6 Fix broken Markdown headings
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2017-04-17 20:29:34 +02:00
Axel Naumann
52d32de70c Add tests for #pragma cling optimize and .O 2017-04-12 15:44:35 +02:00
Axel Naumann
86b3cfb1c4 Implement #pragma cling optimize(N) to set the opt level. 2017-04-12 15:44:35 +02:00
Axel Naumann
ebc4857766 Teach the pragma parser to parse non-string literals. 2017-04-12 15:44:35 +02:00
Axel Naumann
c30a28221c Implement .O and .O <N> to set the opt level. 2017-04-12 15:44:35 +02:00
Axel Naumann
98b07031df Use CompOpt from outer Transaction instead of default constructed. 2017-04-12 15:44:35 +02:00
Axel Naumann
711a136562 Add and use Interpreter::makeDefaultCompilationOpts(). 2017-04-12 15:44:35 +02:00
Axel Naumann
a5db95b81b Add the OptLevel to be used for new Transactions. 2017-04-12 15:44:35 +02:00
Axel Naumann
52100eb2f1 Pass OptLevel to addModule. 2017-04-12 15:44:35 +02:00
Axel Naumann
66b8d8535a Keep one PassManager per opt level; runOnModule now takes an OptLevel.
Also inform the TargetMachine of the OptLevel to be used; this will be
picked up by OrcJIT's SimpleCompiler when constructing the MC passes.
2017-04-12 15:44:35 +02:00
Axel Naumann
ed657b99d8 Add optimization level to CompilationOptions. 2017-04-12 15:44:35 +02:00
Axel Naumann
f994d2652d Force NormalInlining only for GCC. 2017-04-12 15:44:34 +02:00
Axel Naumann
f64d5472b3 Remove use of non-const CodeGenOpts. 2017-04-12 15:44:34 +02:00
Philippe Canal
e173a95fc1 With module (or pcm) even trivial lookup can lead to deserialization and thus need a transaction 2017-04-11 23:00:40 +02:00
Axel Naumann
bb9a8a9fc2 Format typos. 2017-04-09 13:44:05 +02:00
Ajith Pandel
16846d2640 Fix Travis build status badge 2017-04-08 12:44:07 +02:00
Philippe Canal
f5c7037763 Fix ROOT-8739: Lookup of symbol inside of namespace shadowed by function (in another 'used' namespace).
This was happening when a namespace had the same as the function in a namespace that was 'used'.  Namely,
in the issue report it was the 'next' namespace and the function std::next.

This required the quick search function in LookupHelper.cxx to properly handle the return value of utils::Lookup::Named.
2017-04-07 21:14:06 +02:00
Philippe Canal
3a1db539f6 Revert "Fix ROOT-8739: Lookup of symbol inside of namespace shadowed by function (in another 'used' namespace)."
This reverts commit 0728f30ead6c1cca74bf31b93dc9a1cb616a3e35.
2017-04-07 20:44:04 +02:00
Philippe Canal
68283cac47 Fix ROOT-8739: Lookup of symbol inside of namespace shadowed by function (in another 'used' namespace).
This was happening when a namespace had the same as the function in a namespace that was 'used'.  Namely,
in the issue report it was the 'next' namespace and the function std::next.

This required the quick search function in LookupHelper.cxx to properly handle the return value of utils::Lookup::Named.
2017-04-07 20:29:17 +02:00
Axel Naumann
7a083b672a Update doc to follow change in kernel name - thanks, Steven R. Brandt! 2017-04-07 08:44:08 +02:00
Vassil Vassilev
07065b3fff Teach cpt how to handle --create-dev-env Release option. 2017-04-06 19:59:23 +02:00