Update llvm to trunk r290819 and resolve conflicts.
Update llvm to release_39 branch r276489, and resolve conflicts.