Displaying 1 50 of 5,278,658 commits (0.248s)

PC-BSD — release release-trueos.sh, usr.bin/clang-bootstrap clang-bootstrap.sh

Rework previous commit. Have clang-bootstrap handle the
hard-link creation for llvm*. We need symlinks in /usr/bin/ so
the /usr/local/$LLVM/lib directory works when the binaries run

LLVM — llvm/trunk/include/llvm/ExecutionEngine/Orc ThreadSafeModule.h

[ORC] Fix a missing include in r343055.

PC-BSD — usr.bin/clang-bootstrap clang-bootstrap.sh

Revert "This was a tricky one. Turns out sym-links for compilers are bad for some"

This reverts commit 3edbe895126dec329df9126a6a3d0262bd9570e8.

OpenZFS on OS X — include/sys types.h

Add workaround for kcdata.h compile error

/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/
  Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/
  Kernel.framework/Headers/kern/kcdata.h:1194:6:
    error:        use of undeclared identifier 'strnlen'

Most likely we have some odd situation with the include_next magic
we perform which possibly would be a better fix.
Delta File
+8 -0 include/sys/types.h
+8 -0 1 file

LLVM — llvm/trunk/include/llvm/ExecutionEngine/Orc ThreadSafeModule.h Layer.h, llvm/trunk/lib/ExecutionEngine/Orc CompileOnDemandLayer.cpp ThreadSafeModule.cpp

[ORC] Add ThreadSafeModule and ThreadSafeContext wrappers to support concurrent
compilation of IR in the JIT.

ThreadSafeContext is a pair of an LLVMContext and a mutex that can be used to
lock that context when it needs to be accessed from multiple threads.

ThreadSafeModule is a pair of a unique_ptr<Module> and a
shared_ptr<ThreadSafeContext>. This allows the lifetime of a ThreadSafeContext
to be managed automatically in terms of the ThreadSafeModules that refer to it:
Once all modules using a ThreadSafeContext are destructed, and providing the
client has not held on to a copy of shared context pointer, the context will be
automatically destructed.

This scheme is necessary due to the following constraits: (1) We need multiple
contexts for multithreaded compilation (at least one per compile thread plus
one to store any IR not currently being compiled, though one context per module
is simpler). (2) We need to free contexts that are no longer being used so that
the JIT does not leak memory over time. (3) Module lifetimes are not
predictable (modules are compiled as needed depending on the flow of JIT'd
code) so there is no single point where contexts could be reclaimed.

JIT clients not using concurrency can safely use one ThreadSafeContext for all
ThreadSafeModules.

JIT clients who want to be able to compile concurrently should use a different

    [5 lines not shown]

PC-BSD — usr.bin/clang-bootstrap clang-bootstrap.sh

This was a tricky one. Turns out sym-links for compilers are bad for some
specific ports... cough cough, openjdk8... They do tricky things based
upon the name of the command, I.E. c++, but it resolves symlinks
first, and that can screw it up.

LLVM — llvm/trunk/lib/Transforms/Utils LoopUnrollPeel.cpp, llvm/trunk/test/Transforms/LoopUnroll peel-loop-conditions.ll peel-loop.ll

Remove LoopID metadata from the branch instruction
that follows the peeled iterations.

Differential Revision: https://reviews.llvm.org/D52176

LLVM — llvm/trunk/lib/Transforms/Scalar ConstantHoisting.cpp, llvm/trunk/test/CodeGen/Thumb consthoist-few-dependents.ll

Revert "Revert "[ConstHoist] Do not rebase single (or few) dependent constant""

This reverts commit bd7b44f35ee9fbe365eb25ce55437ea793b39346.

Reland r342994: disabled the optimization and explicitly enable it in test.

-mllvm -consthoist-min-num-to-rebase<unsigned>=0

[ConstHoist] Do not rebase single (or few) dependent constant

If an instance (InsertionPoint or IP) of Base constant A has only one or few
rebased constants depending on it, do NOT rebase. One extra ADD instruction is
required to materialize each rebased constant, assuming A and the rebased have
the same materialization cost.

Differential Revision: https://reviews.llvm.org/D52243

FreeBSD Ports — head/math/octave-forge-financial distinfo Makefile

- Update to 0.5.2.

LLVM — llvm/trunk/lib/Target/WebAssembly WebAssemblyInstrSIMD.td, llvm/trunk/test/CodeGen/WebAssembly simd-conversions.ll

[WebAssembly] SIMD conversions

Summary:
Lowers (s|u)itofp and fpto(s|u)i instructions for vectors. The fp to
int conversions produce poison values if their arguments are out of
the convertible range, so a future CL will have to add an LLVM
intrinsic to make the saturating behavior of this conversion usable.

Reviewers: aheejin, dschuff

Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits

Differential Revision: https://reviews.llvm.org/D52372

LLVM — cfe/trunk/lib/StaticAnalyzer/Core Store.cpp, cfe/trunk/test/Analysis casts.cpp

[analyzer] Fix a crash on casting symbolic pointers to derived classes.

Commit r340984 causes a crash when a pointer to a completely unrelated type
UnrelatedT (eg., opaque struct pattern) is being casted from base class BaseT to
derived class DerivedT, which results in an ill-formed region
Derived{SymRegion{$<UnrelatedT x>}, DerivedT}.

Differential Revision: https://reviews.llvm.org/D52189

FreeBSD — stable/11/sys/dev/oce oce_mbox.c oce_if.h

MFC r333146:

  Add ability to perform a firmware reset during driver initialization.

  Required by Lancer Gen 5 hardware.

  Submitted by:   Ram Kishore Vegesna <ram.vegesna at broadcom.com>
  Obtained from:  Broadcom

LLVM — cfe/trunk/test/Sema warn-duplicate-enum.c

Fix a bot failure from r343042.

LLVM — llvm/trunk/lib/CodeGen/SelectionDAG DAGCombiner.cpp

[DAGCombiner] Remove unnecessary check for visitSDIVLike/visitUDIVLike returning a UDIVREM 
or SDIVREM node.

This shouldn't be possible and is a leftover from when we used to recursively call combine 
here.

LLVM — cfe/trunk/docs/analyzer DebugChecks.rst, cfe/trunk/lib/StaticAnalyzer/Checkers ExprInspectionChecker.cpp

[analyzer] Add a testing facility for testing relationships between symbols.

Tests introduced in r329780 was disabled in r342317 because these tests
were accidentally testing dump infrastructure, when all they cared about was
how symbols relate to each other. So when dump infrastructure changed,
tests became annoying to maintain.

Add a new feature to ExprInspection: clang_analyzer_denote() and
clang_analyzer_explain(). The former adds a notation to a symbol, the latter
expresses another symbol in terms of previously denoted symbols.

It's currently a bit wonky - doesn't print parentheses and only supports
denoting atomic symbols. But it's even more readable that way.

Differential Revision: https://reviews.llvm.org/D52133

FreeBSD — stable/11/sys/dev/oce oce_if.c oce_hw.h

MFC r306219:

  Update oce to version 11.0.50.0

  Submitted by:   Venkat Duvvuru <venkatkumar.duvvuru at broadcom.com>

FreeBSD Ports — head/chinese/fcitx-cloudpinyin distinfo pkg-plist

- Update to 0.3.6

PR:                231614
Submitted by:        ryo at tetera.org
Approved by:        maintainer

FreeBSD — stable/11/sys/net if_gif.c ethernet.h, stable/11/sys/net80211 ieee80211_input.c

MFC r303811:

  Extract out the various local definitions of ETHER_IS_BROADCAST() and
  turn them into a shared definition.

  Set M_MCAST/M_BCAST appropriately upon packet reception in net80211, just
  before they are delivered up to the ethernet stack.

  Submitted by:   rstone

LLVM — llvm/trunk/lib/Target/AMDGPU SILoadStoreOptimizer.cpp, llvm/trunk/test/CodeGen/AMDGPU merge-load-store-vreg.mir

[AMDGPU] Fix ds combine with subregs

Differential Revision: https://reviews.llvm.org/D52522

ZFS on Linux — cmd/zpool zpool_main.c

Zpool iostat: remove latency/queue scaling

Bandwidth and iops are average per second while *_wait are averages
per request for latency or, for queue depths, an instantaneous
measurement at the end of an interval (according to man zpool).

When calculating the first two it makes sense to do
x/interval_duration (x being the increase in total bytes or number of
requests over the duration of the interval, interval_duration in
seconds) to 'scale' from amount/interval_duration to amount/second.

But applying the same math for the latter (*_wait latencies/queue) is
wrong as there is no interval_duration component in the values (these
are time/requests to get to average_time/request or already an
absulute number).

This bug leads to the only correct continuous *_wait figures for both
latencies and queue depths from 'zpool iostat -l/q' being with
duration=1 as then the wrong math cancels itself (x/1 is a nop).

This removes temporal scaling from latency and queue depth figures.

Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Gregor Kopka <gregor at kopka.net>

    [2 lines not shown]
Delta File
+6 -6 cmd/zpool/zpool_main.c
+6 -6 1 file

LLVM — llvm/trunk/lib/Target/X86 X86ISelLowering.cpp X86InstrSSE.td, llvm/trunk/test/CodeGen/X86 movmsk-cmp.ll bool-vector.ll

[X86] Allow movmskpd/ps ISD nodes to be created and selected with integer input types.

This removes an int->fp bitcast between the surrounding code and the movmsk. I had already 
added a hack to combineMOVMSK to try to look through this bitcast to improve the 
SimplifyDemandedBits there.

But I found an additional issue where the bitcast was preventing combineMOVMSK from being 
called again after earlier nodes in the DAG are optimized. The bitcast gets revisted, but 
not the user of the bitcast. By using integer types throughout, the bitcast doesn't get in 
the way.

LLVM — llvm/trunk/test/CodeGen/X86 movmsk-cmp.ll

[X86] Add some more movmsk test cases. NFC

These IR patterns represent the exact behavior of a movmsk instruction using (zext 
(bitcast (icmp slt X, 0))).

For the v4i32/v8i32/v2i64/v4i64 we currently emit a PCMPGT for the icmp slt which is 
unnecessary since we only care about the sign bit of the result. This is because of the 
int->fp bitcast we put on the input to the movmsk nodes for these cases. I'll be fixing 
this in a future patch.

FreeBSD Ports — head/math/libqalculate Makefile

Fix build on powerpc64
Add USES=gnome

PR:                231723
Submitted by:        Piotr Kubaj <pkubaj at anongoth.pl>
Sponsored by:        IntegriCloud
Delta File
+2 -4 head/math/libqalculate/Makefile
+2 -4 1 file

LLVM — cfe/trunk/test/CodeGen cfstring3.c

[clang-check-codegen][cfstring] Accept either @ or % for progbits to make ppc64be bots 
happy.

PPC64BE bots use % instead of @ for directives like progbits. Since CFString tests also
check asm output, they fail on the following:

  cfstring3.c:44:19: error: CHECK-ASM-ELF: expected string not found in input
  // CHECK-ASM-ELF: .section cfstring,"aw",@progbits
  <stdin>:30:2: note: possible intended match here
  .section cfstring,"aw",%progbits

Updating that check with a {{[@%]}}progbits regex to make those bots happy.

FreeBSD Ports — head/security/py-python-nss Makefile

Fix build on mips* and powerpc64

PR:                231715
Submitted by:        Piotr Kubaj <pkubaj at anongoth.pl>
Sponsored by:        IntegriCloud

LLVM — llvm/trunk/include/llvm/ExecutionEngine RuntimeDyld.h, llvm/trunk/include/llvm/ExecutionEngine/Orc RTDyldObjectLinkingLayer.h

[ORC] Add an asynchronous jit-link function, jitLinkForORC, to RuntimeDyld and
switch RTDyldObjectLinkingLayer2 to use it.

RuntimeDyld::loadObject is currently a blocking operation. This means that any
JIT'd code whose call-graph contains an embedded complete K graph will require
at least K threads to link, which precludes the use of a fixed sized thread
pool for concurrent JITing of arbitrary code (whatever K the thread-pool is set
at, any code with a K+1 complete subgraph will deadlock at JIT-link time).

To address this issue, this commmit introduces a function called jitLinkForORC
that uses continuation-passing style to pass the fix-up and finalization steps
to the asynchronous symbol resolver interface so that linking can be performed
without blocking.

LLVM — cfe/trunk/lib/Sema SemaDecl.cpp, cfe/trunk/test/Sema warn-duplicate-enum.c

[Sema] Use a more civilized hash map to implement -Wduplicate-enum.

DenseMap<long, SOMETHING> used LONG_MAX as a tombstone, so it asserts
when you try to insert it!

rdar://44774672

LLVM — llvm/trunk/test/Transforms/InstCombine vec_shuffle.ll

[InstCombine] add fneg variation of shuffle-binop fold; NFC

If the fsub in this pattern was replaced by an actual fneg
instruction, we would need to add a fold to recognize that
because fneg would not be a binop.

FreeBSD Ports — head/sysutils/helm distinfo Makefile

- Update to 2.11.0
- Add a pkg-message file with a reminder about the upgrade process

LLVM — cfe/trunk/lib/Lex Lexer.cpp, cfe/trunk/test/Lexer unicode.c

Don't emit "will be treated as an identifier character" warning for
UTF-8 characters that aren't identifier characters in the current
language mode.

LLVM — cfe/trunk/lib/CodeGen CodeGenModule.cpp, cfe/trunk/test/CodeGen CFStrings.c cfstring3.c

Reland "[Clang][CodeGen][ObjC]: Fix CoreFoundation on ELF with `-fconstant-cfstrings`"

Relanding rL342883 with more fragmented tests to test ELF-specific
section emission separately from broad-scope CFString tests. Now this
tests the following separately

1). CoreFoundation builds and linkage for ELF while building it.
2). CFString ELF section emission outside CF in assembly output.
3). Broad scope `cfstring3.c` tests which cover all object formats at
    bitcode level and assembly level (including ELF). 

This fixes non-bridged CoreFoundation builds on ELF targets
that use -fconstant-cfstrings. The original changes from differential 
for a similar patch to PE/COFF (https://reviews.llvm.org/D44491) did not
check for an edge case where the global could be a constant which surfaced
as an issue when building for ELF because of different linkage semantics.

This patch addresses several issues with crashes related to CF builds on ELF
as well as improves data layout by ensuring string literals that back
the actual CFConstStrings end up in .rodata in line with Mach-O.

Change itself tested with CoreFoundation on Linux x86_64 but should be valid
for BSD-like systems as well that use ELF as the native object format.

Differential Revision: https://reviews.llvm.org/D52344

FreeBSD Ports — head/net/openmpi3 Makefile

 - Remove --enable-heterogeneous from CONFIGURE_ARGS, this option is broken and causing 
problems
   see https://github.com/open-mpi/ompi/blob/master/README#L1387

while here

 - Bump PORTREVISION
 - Move USES to the proper section to make portlint happy

PR:                231697
Submitted by:        russo AT bogodyn.org
Delta File
+4 -3 head/net/openmpi3/Makefile
+4 -3 1 file

FreeBSD Ports — head/www/p5-Mojolicious distinfo Makefile

Update Mojolicious to 8.01

FreeBSD Ports — head/net/openmpi2 Makefile

- Remove --enable-heterogeneous from CONFIGURE_ARGS, this option is broken and causing 
problems
  see https://github.com/open-mpi/ompi/blob/master/README#L1387

while here

- Bump PORTREVISION
- Move USES to the proper section to make portlint happy

PR:                231697
Submitted by:        russo AT bogodyn.org
Delta File
+4 -3 head/net/openmpi2/Makefile
+4 -3 1 file

FreeBSD — projects/openssl111/secure/lib/libssl Makefile.depend, projects/openssl111/secure/usr.bin/openssl Makefile.depend

Remove MD dirdeps from Makefile.depend.

It can't be right. :-(

FreeBSD — projects/openssl111/secure/lib/libcrypto Makefile

Make it more meta mode friendly.

FreeBSD — projects/openssl111/secure/lib/libcrypto Makefile

Fix CLEANFILES.

FreeBSD Ports — head/sysutils/osquery Makefile

bump llvm depend for 10.x to llvm60.

PR:                231290
Approved by:        zi (maintainer)
Sponsored by:        DARPA, AFRL
Delta File
+3 -3 head/sysutils/osquery/Makefile
+3 -3 1 file

LLVM — cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive CallEvent.h, cfe/trunk/lib/StaticAnalyzer/Core CallEvent.cpp

[analyzer] NFC: CallDescription: Improve array management.

Combine the two constructor overrides into a single ArrayRef constructor
to allow easier brace initializations and simplify how the respective field
is used internally.

Differential Revision: https://reviews.llvm.org/D51390

LLVM — cfe/trunk/include/clang/Basic DiagnosticSemaKinds.td, cfe/trunk/include/clang/Sema Sema.h

P0969R0: allow structured binding of accessible members, not only public members.

LLVM — cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive ProgramStateTrait.h CheckerContext.h, cfe/trunk/lib/StaticAnalyzer/Checkers InnerPointerChecker.cpp CheckObjCDealloc.cpp

[analyzer] NFC: Legalize state manager factory injection.

When a checker maintains a program state trait that isn't a simple list/set/map, but is a 
combination of multiple lists/sets/maps (eg., a multimap - which may be implemented as a 
map from something to set of something), ProgramStateManager only contains the factory for 
the trait itself. All auxiliary lists/sets/maps need a factory to be provided by the 
checker, which is annoying.

So far two checkers wanted a multimap, and both decided to trick the
ProgramStateManager into keeping the auxiliary factory within itself
by pretending that it's some sort of trait they're interested in,
but then never using this trait but only using the factory.

Make this trick legal. Define a convenient macro.

One thing that becomes apparent once all pieces are put together is that
these two checkers are in fact using the same factory, because the type that
identifies it, ImmutableMap<const MemRegion *, ImmutableSet<SymbolRef>>,
is the same. This situation is different from two checkers registering similar
primitive traits.

Differential Revision: https://reviews.llvm.org/D51388

FreeBSD Ports — head/audio/zynaddsubfx Makefile

Update dependency on llvm40 to llvm60 and constrain to FreeBSD 10.x.

PR:                231287
Approved by:        hselasky (maintainer)
Sponsored by:        DARPA, AFRL
Delta File
+6 -5 head/audio/zynaddsubfx/Makefile
+6 -5 1 file

FreeBSD Ports — head/cad/sumo Makefile

Update 10.x build depend on clang to llvm60.

PR:                231288
Approved by:        maintainer timeout (15 days)
Sponsored by:        DARPA, AFRL
Delta File
+3 -3 head/cad/sumo/Makefile
+3 -3 1 file

FreeBSD Ports — head/sysutils/eksctl distinfo Makefile

- Update to 0.1.3

LLVM — lld/trunk/test/wasm visibility-hidden.ll, lld/trunk/wasm Options.td Symbols.cpp

[WebAssembly] Add --export-default/--no-export-default options

These option control weather or not symbols marked as visibility
default are exported in the output binary.

By default this is true, but emscripten prefers to control the
exported symbol list explicitly at link time and ignore the
symbol attributes.

Differential Revision: https://reviews.llvm.org/D52003

LLVM — lldb/trunk/lit/tools/lldb-mi/target target-select-so-path.test, lldb/trunk/lit/tools/lldb-mi/target/inputs target-select-so-path.py

[lldb-mi] Fix bugs in target-select-so-path.test

Summary:
* This patch fixes hanging of the test in case of using python3, changes callback
  function that will be called if the timer ends, changes python interpreter to
  `%python` that is set up by llvm-lit.
* Also, the test didn't work properly since it didn't contain a call of
  filecheck_proc.communicate(), that means that filecheck didn't run and its
  return code was equal to 0 in all cases.

Reviewers: teemperor, labath, tatyana-krasnukha, aprantl

Reviewed By: teemperor, labath

Subscribers: ki.stfu, lldb-commits

Differential Revision: https://reviews.llvm.org/D52498

pkgsrc — sysutils/u-boot distinfo, sysutils/u-boot-jetson-tk1 Makefile

Set fdtfile env variable and run 'pci enum' by default on tegra boards.

FreeBSD Ports — head/devel/phabricator Makefile pkg-descr

devel/phabricator: Update WWW and pet portlint.

- Update WWW.
- Do not use spaces between equal signs and values.
- Unmute an INSTALL_DATA invocation as suggested by portlint.

Approved by:        mat (mentor)
Differential Revision:        https://reviews.freebsd.org/D17311

LLVM — lld/trunk/ELF Options.td, lld/trunk/docs ld.lld.1

Update a --help message and add -execute-only to the man page.

FreeBSD Ports — head/net-p2p/go-ethereum distinfo Makefile

net-p2p/go-ethereum: Update to v1.8.16.

PR:                231707
Submitted by:        Enrique Fynn <me at enriquefynn.com>
Approved by:        krion (mentor)
Differential Revision:        https://reviews.freebsd.org/D17310