{"action":"created","comment":{"url":"https://api.github.com/repos/weld-project/weld/pulls/comments/236400164","pull_request_review_id":178450641,"id":236400164,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjQwMDE2NA==","diff_hunk":"@@ -0,0 +1,351 @@\n+//! Generates code to compare values using a comparison function.\n+\n+extern crate llvm_sys;\n+\n+use std::ffi::{CStr, CString};\n+\n+use ast::Type;\n+use super::vector::VectorExt;\n+use ast::ScalarKind::{I32, I64};\n+use error::*;\n+use sir::FunctionId;\n+\n+use super::llvm_exts::*;\n+use super::llvm_exts::LLVMExtAttribute::*;\n+\n+use self::llvm_sys::prelude::*;\n+use self::llvm_sys::core::*;\n+use self::llvm_sys::LLVMLinkage;\n+use self::llvm_sys::LLVMIntPredicate::*;\n+\n+use super::CodeGenExt;\n+use super::LlvmGenerator;\n+\n+use ast::BinOpKind::*;\n+use codegen::llvm2::numeric::gen_binop;\n+use codegen::llvm2::SIR_FUNC_CALL_CONV;\n+\n+/// Returns whether a value can be compared with libc's `memcmp`.\n+trait SupportsMemCmp {\n+    fn supports_memcmp(&self) -> bool;\n+}\n+\n+/// Only i8 or smaller values can be compared using `memcmp`.\n+impl SupportsMemCmp for Type {\n+    fn supports_memcmp(&self) -> bool {\n+        use ast::Type::*;\n+        // Structs do not support memcmp because they may be padded.\n+        match *self {\n+            Scalar(ref kind) => {\n+                use ast::ScalarKind::*;\n+                match *kind {\n+                    Bool | I8 | U8 | U16 | U32 | U64 => true,\n+                    _ => false,\n+                }\n+            },\n+            _ => false,\n+        }\n+    }\n+}\n+\n+/// Trait for generating comparison code.\n+pub trait GenCmp {\n+    /// Generates a comparator for a type.\n+    ///\n+    /// The comparators are over pointers of the type, e.g., a comparator for `i32`\n+    /// has the type signature `i1 (i32*, i32*)`. This method returns the generated function. The\n+    /// function returns -1 if the first element is smaller, 0 if the elements are equal, and 1 if\n+    /// the first element is larger.\n+    unsafe fn gen_cmp_fn(&mut self, ty: &Type) -> WeldResult<LLVMValueRef>; \n+\n+    /// Generates an opaque comparator for a type.\n+    ///\n+    /// Opaque comparators are linked externally and operate over opaque (i.e., `void*`)\n+    /// arguments. These are used, e.g., as an argument to qsort. This method returns the\n+    /// generated function.\n+    unsafe fn gen_opaque_cmp_fn(&mut self, ty: &Type) -> WeldResult<LLVMValueRef>;\n+\n+    /// Generates an opaque comparator using the specified comparator function.\n+    ///\n+    /// The comparator should return -1 for left < right, 1 for left > right, and 0 for left == right.\n+    /// These functions are not currently cached.\n+    unsafe fn gen_custom_cmp(&mut self,\n+                             elem_ty: &LLVMTypeRef,\n+                             cf_id: &FunctionId,\n+                             cmpfunc: &LLVMValueRef) -> WeldResult<LLVMValueRef>;\n+}\n+\n+impl GenCmp for LlvmGenerator {\n+    /// Generates a default comparison function for a type.\n+    ///\n+    /// For scalars, the comparison function returns -1 if left < right, 1 if left > right,\n+    /// and 0 otherwise.\n+    /// For flat aggregate types (i.e. vectors), the comparison function returns\n+    /// the scalar comparison value for the first element where the values are not equal, or 0 if\n+    /// all values are equal.\n+    /// For nested aggregate types (i.e. structs), the comparison function is applied\n+    /// recursively to the elements.\n+    unsafe fn gen_cmp_fn(&mut self, ty: &Type) -> WeldResult<LLVMValueRef> {\n+        use ast::Type::*;\n+        let result = self.cmp_fns.get(ty).cloned();\n+        if let Some(result) = result {\n+            return Ok(result)\n+        }\n+\n+        let llvm_ty = self.llvm_type(ty)?;\n+        // XXX Do we need the run handle?\n+        let mut arg_tys = [LLVMPointerType(llvm_ty, 0), LLVMPointerType(llvm_ty, 0)];\n+        let ret_ty = self.i32_type();\n+\n+        let c_prefix = LLVMPrintTypeToString(llvm_ty);\n+        let prefix = CStr::from_ptr(c_prefix);\n+        let prefix = prefix.to_str().unwrap();\n+        let name = format!(\"{}.cmp\", prefix);\n+        // Free the allocated string.\n+        LLVMDisposeMessage(c_prefix);\n+\n+        let (function, builder, entry_block) = self.define_function(ret_ty, &mut arg_tys, name);\n+\n+        LLVMExtAddAttrsOnFunction(self.context, function, &[InlineHint]);\n+        LLVMExtAddAttrsOnParameter(self.context, function, &[ReadOnly, NoAlias, NonNull, NoCapture], 0);\n+        LLVMExtAddAttrsOnParameter(self.context, function, &[ReadOnly, NoAlias, NonNull, NoCapture], 1);\n+\n+        let left = LLVMGetParam(function, 0);\n+        let right = LLVMGetParam(function, 1);\n+\n+        let result = match *ty {\n+            Builder(_, _) => unreachable!(),\n+            Dict(_, _) => unimplemented!(), // dictionary comparison\n+            Simd(_) => unimplemented!(),\n+            Scalar(_) => {\n+                let left = self.load(builder, left)?;\n+                let right = self.load(builder, right)?;\n+                let on_geq_block = LLVMAppendBasicBlockInContext(self.context, function, c_str!(\"\"));\n+                let done_block = LLVMAppendBasicBlockInContext(self.context, function, c_str!(\"\"));\n+                \n+                // if lt\n+                let cond = gen_binop(builder, LessThan, left, right, ty)?;\n+                LLVMBuildCondBr(builder, cond, done_block, on_geq_block);\n+\n+                LLVMPositionBuilderAtEnd(builder, on_geq_block);\n+                // else if equal\n+                // this is less likely to occur during sort so we don't check it if the lt branch passes\n+                // TODO: special case booleans for Select\n+                let eq = gen_binop(builder, Equal, left, right, ty)?;\n+                let on_geq = LLVMBuildSelect(builder, eq, self.i32(0), self.i32(1), c_str!(\"\"));\n+                LLVMBuildBr(builder, done_block);\n+                \n+                // Finish block - set result.\n+                LLVMPositionBuilderAtEnd(builder, done_block);\n+                let result = LLVMBuildPhi(builder, ret_ty, c_str!(\"\"));\n+                let mut blocks = [entry_block, on_geq_block];\n+                let mut values = [self.i32(-1), on_geq];\n+                LLVMAddIncoming(result, values.as_mut_ptr(), blocks.as_mut_ptr(), values.len() as u32);\n+\n+                LLVMBuildRet(builder, result);\n+            }\n+            Struct(ref elems) => { // recursively apply cmp to elements\n+                let mut result = self.i32(0);\n+                for (i, elem) in elems.iter().enumerate() {\n+                    let func = self.gen_cmp_fn(elem)?;\n+                    let next_block = LLVMAppendBasicBlockInContext(self.context, function, c_str!(\"\"));\n+                    let done_block = LLVMAppendBasicBlockInContext(self.context, function, c_str!(\"\"));\n+\n+                    let field_left = LLVMBuildStructGEP(builder, left, i as u32, c_str!(\"\"));\n+                    let field_right = LLVMBuildStructGEP(builder, right, i as u32, c_str!(\"\"));\n+\n+                    let mut args = [field_left, field_right];\n+                    // Compare struct field.\n+                    let field_result = LLVMBuildCall(builder, func, args.as_mut_ptr(), args.len() as u32, c_str!(\"\"));\n+                    let cond = LLVMBuildICmp(builder, LLVMIntEQ, field_result, self.i32(0), c_str!(\"\"));\n+\n+                    // Continue to next only if the field result returns 0 (fields are equal).\n+                    LLVMBuildCondBr(builder, cond, next_block, done_block);\n+                    \n+                    // If field result is nonzero, return field result.\n+                    LLVMPositionBuilderAtEnd(builder, done_block);\n+                    LLVMBuildRet(builder, field_result);\n+                    \n+                    LLVMPositionBuilderAtEnd(builder, next_block);\n+                }\n+                \n+                // All blocks equal, return 0.\n+                LLVMBuildRet(builder, result); \n+            }\n+            // Vectors comprised of unsigned chars or booleans can be compared for using `memcmp`.\n+            Vector(ref elem) if elem.supports_memcmp() => {\n+                let left_vector = self.load(builder, left)?;\n+                let right_vector = self.load(builder, right)?;\n+                let left_size = self.gen_size(builder, ty, left_vector)?;\n+                let right_size = self.gen_size(builder, ty, right_vector)?;\n+\n+                // memcmp will run off the end of the smaller buffer,\n+                // so emulate strcmp semantics by stopping at the end of the smaller buffer.\n+                // Note that this only works when both vectors have elements of the same type.\n+                let min_size = gen_binop(builder, Min, left_size, right_size, &Scalar(I64))?;\n+\n+                let zero = self.i64(0);\n+                let left_data = self.gen_at(builder, ty, left_vector, zero)?;\n+                let right_data = self.gen_at(builder, ty, right_vector, zero)?;\n+                let left_data = LLVMBuildBitCast(builder, left_data, self.void_pointer_type(), c_str!(\"\"));\n+                let right_data = LLVMBuildBitCast(builder, right_data, self.void_pointer_type(), c_str!(\"\"));\n+                let elem_ty = self.llvm_type(elem)?;\n+                let elem_size = self.size_of(elem_ty);\n+                let bytes = LLVMBuildNSWMul(builder, min_size, elem_size, c_str!(\"\"));\n+\n+                // Call memcmp\n+                let name = \"memcmp\";\n+                let ret_ty = self.i32_type();\n+                let ref mut arg_tys = [self.void_pointer_type(), self.void_pointer_type(), self.i64_type()];\n+                if self.intrinsics.add(name, ret_ty, arg_tys) {\n+                    let memcmp = self.intrinsics.get(name).unwrap();\n+                    LLVMExtAddAttrsOnParameter(self.context, memcmp, &[ReadOnly, NoCapture], 0);\n+                    LLVMExtAddAttrsOnParameter(self.context, memcmp, &[ReadOnly, NoCapture], 1);\n+                }\n+                let ref mut args = [left_data, right_data, bytes];\n+                let memcmp_result = self.intrinsics.call(builder, name, args)?;\n+\n+                LLVMBuildRet(builder, memcmp_result);\n+            }\n+            Vector(ref elem) => {\n+                // Compare vectors with a loop. Check size like before.\n+                let loop_block = LLVMAppendBasicBlockInContext(self.context(), function,  c_str!(\"\"));\n+                let done_block = LLVMAppendBasicBlockInContext(self.context, function, c_str!(\"\"));\n+\n+                let left_vector = self.load(builder, left)?;\n+                let right_vector = self.load(builder, right)?;\n+                let left_size = self.gen_size(builder, ty, left_vector)?;\n+                let right_size = self.gen_size(builder, ty, right_vector)?;\n+                let min_size = gen_binop(builder, Min, left_size, right_size, &Scalar(I64))?;\n+\n+                // Check if there are any elements to loop over.\n+                let check = LLVMBuildICmp(builder, LLVMIntNE, min_size, self.i64(0), c_str!(\"\"));\n+\n+                LLVMBuildCondBr(builder, check, loop_block, done_block);\n+                LLVMPositionBuilderAtEnd(builder, loop_block);\n+\n+                // Index variable.\n+                let phi_i = LLVMBuildPhi(builder, self.i64_type(), c_str!(\"\"));\n+\n+                let func = self.gen_cmp_fn(elem)?;\n+                let left_value = self.gen_at(builder, ty, left_vector, phi_i)?;\n+                let right_value = self.gen_at(builder, ty, right_vector, phi_i)?;\n+                let mut args = [left_value, right_value];\n+                let cmp_result = LLVMBuildCall(builder, func, args.as_mut_ptr(), args.len() as u32, c_str!(\"\"));\n+                let neq = LLVMBuildICmp(builder, LLVMIntNE, cmp_result, self.i32(0), c_str!(\"\"));\n+\n+                let updated_i = LLVMBuildNSWAdd(builder, phi_i, self.i64(1), c_str!(\"\"));\n+                let check1 = LLVMBuildICmp(builder, LLVMIntEQ, updated_i, left_size, c_str!(\"\"));\n+                let check2 = LLVMBuildOr(builder, check1, neq, c_str!(\"\"));\n+                // End loop if i == size || left != right\n+                LLVMBuildCondBr(builder, check2, done_block, loop_block);\n+\n+                let mut blocks = [entry_block, loop_block];\n+                let mut values = [self.i64(0), updated_i];\n+                LLVMAddIncoming(phi_i, values.as_mut_ptr(), blocks.as_mut_ptr(), values.len() as u32);\n+\n+                // Finish block - set result and compute number of consumed bits.\n+                LLVMPositionBuilderAtEnd(builder, done_block);\n+                let result = LLVMBuildPhi(builder, self.i32_type(), c_str!(\"\"));\n+                let mut blocks = [entry_block, loop_block];\n+                let mut values = [self.i32(1), cmp_result];\n+                LLVMAddIncoming(result, values.as_mut_ptr(), blocks.as_mut_ptr(), values.len() as u32);\n+\n+                LLVMBuildRet(builder, result);\n+            }\n+            Function(_,_) | Unknown => {\n+                unreachable!()\n+            }\n+        };\n+\n+        LLVMDisposeBuilder(builder);\n+\n+        self.cmp_fns.insert(ty.clone(), function);\n+        Ok(function)\n+    }\n+\n+    /// Generates an opaque comparison function for a type.\n+    unsafe fn gen_opaque_cmp_fn(&mut self, ty: &Type) -> WeldResult<LLVMValueRef> {\n+        let result = self.opaque_cmp_fns.get(ty).cloned();\n+        if let Some(result) = result {\n+            return Ok(result)\n+        }\n+\n+        let llvm_ty = self.llvm_type(ty)?;\n+        let mut arg_tys = [self.void_pointer_type(), self.void_pointer_type()];\n+        let ret_ty = self.i32_type();\n+\n+        let c_prefix = LLVMPrintTypeToString(llvm_ty);\n+        let prefix = CStr::from_ptr(c_prefix);\n+        let prefix = prefix.to_str().unwrap();\n+        let name = format!(\"{}.opaque_cmp\", prefix);\n+\n+        // Free the allocated string.\n+        LLVMDisposeMessage(c_prefix);\n+\n+        let (function, builder, _) = self.define_function_with_visibility(ret_ty,\n+                                                                          &mut arg_tys,\n+                                                                          LLVMLinkage::LLVMExternalLinkage,\n+                                                                          name);\n+\n+        LLVMExtAddAttrsOnFunction(self.context, function, &[InlineHint]);\n+        LLVMExtAddAttrsOnParameter(self.context, function, &[ReadOnly, NoAlias, NonNull, NoCapture], 0);\n+        LLVMExtAddAttrsOnParameter(self.context, function, &[ReadOnly, NoAlias, NonNull, NoCapture], 1);\n+\n+        let left = LLVMGetParam(function, 0);\n+        let right = LLVMGetParam(function, 1);\n+        let left = LLVMBuildBitCast(builder, left, LLVMPointerType(llvm_ty, 0), c_str!(\"\"));\n+        let right = LLVMBuildBitCast(builder, right, LLVMPointerType(llvm_ty, 0), c_str!(\"\"));\n+\n+        let func = self.gen_cmp_fn(ty)?;\n+        let mut args = [left, right];\n+        let result = LLVMBuildCall(builder, func, args.as_mut_ptr(), args.len() as u32, c_str!(\"\"));\n+        let result = LLVMBuildZExt(builder, result, self.i32_type(), c_str!(\"\"));\n+        LLVMBuildRet(builder, result);\n+        LLVMDisposeBuilder(builder);\n+\n+        self.opaque_cmp_fns.insert(ty.clone(), function);\n+        Ok(function)\n+    }\n+\n+    unsafe fn gen_custom_cmp(&mut self,\n+                             elem_ty: &LLVMTypeRef,","path":"weld/codegen/llvm2/cmp.rs","position":312,"original_position":312,"commit_id":"188f66d60f32a430b2f8d28fd6a6fd34fea926ce","original_commit_id":"188f66d60f32a430b2f8d28fd6a6fd34fea926ce","user":{"login":"sppalkia","id":1360483,"node_id":"MDQ6VXNlcjEzNjA0ODM=","avatar_url":"https://avatars0.githubusercontent.com/u/1360483?v=4","gravatar_id":"","url":"https://api.github.com/users/sppalkia","html_url":"https://github.com/sppalkia","followers_url":"https://api.github.com/users/sppalkia/followers","following_url":"https://api.github.com/users/sppalkia/following{/other_user}","gists_url":"https://api.github.com/users/sppalkia/gists{/gist_id}","starred_url":"https://api.github.com/users/sppalkia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sppalkia/subscriptions","organizations_url":"https://api.github.com/users/sppalkia/orgs","repos_url":"https://api.github.com/users/sppalkia/repos","events_url":"https://api.github.com/users/sppalkia/events{/privacy}","received_events_url":"https://api.github.com/users/sppalkia/received_events","type":"User","site_admin":false},"body":"nit: Since all the LLVM `Ref` types implement `Copy`, don't pass them around as references","created_at":"2018-11-26T19:44:59Z","updated_at":"2018-11-26T19:52:23Z","html_url":"https://github.com/weld-project/weld/pull/421#discussion_r236400164","pull_request_url":"https://api.github.com/repos/weld-project/weld/pulls/421","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/weld-project/weld/pulls/comments/236400164"},"html":{"href":"https://github.com/weld-project/weld/pull/421#discussion_r236400164"},"pull_request":{"href":"https://api.github.com/repos/weld-project/weld/pulls/421"}}},"pull_request":{"url":"https://api.github.com/repos/weld-project/weld/pulls/421","id":233077264,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMDc3MjY0","html_url":"https://github.com/weld-project/weld/pull/421","diff_url":"https://github.com/weld-project/weld/pull/421.diff","patch_url":"https://github.com/weld-project/weld/pull/421.patch","issue_url":"https://api.github.com/repos/weld-project/weld/issues/421","number":421,"state":"open","locked":false,"title":"Sort for vectors and structs, plus custom comparators","user":{"login":"pratiksha","id":553500,"node_id":"MDQ6VXNlcjU1MzUwMA==","avatar_url":"https://avatars0.githubusercontent.com/u/553500?v=4","gravatar_id":"","url":"https://api.github.com/users/pratiksha","html_url":"https://github.com/pratiksha","followers_url":"https://api.github.com/users/pratiksha/followers","following_url":"https://api.github.com/users/pratiksha/following{/other_user}","gists_url":"https://api.github.com/users/pratiksha/gists{/gist_id}","starred_url":"https://api.github.com/users/pratiksha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pratiksha/subscriptions","organizations_url":"https://api.github.com/users/pratiksha/orgs","repos_url":"https://api.github.com/users/pratiksha/repos","events_url":"https://api.github.com/users/pratiksha/events{/privacy}","received_events_url":"https://api.github.com/users/pratiksha/received_events","type":"User","site_admin":false},"body":":turkey: \r\n\r\n- Replace `keyfunc` with custom comparator\r\n- Add `compare` macro to standard macros\r\n- Add default comparator BinOps (<, <=, >, >=) for vectors and structs\r\n- Implement sort call","created_at":"2018-11-22T21:53:47Z","updated_at":"2018-11-26T19:52:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"19d960ccf685eb3debe184ed974dc320668fc82d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/weld-project/weld/pulls/421/commits","review_comments_url":"https://api.github.com/repos/weld-project/weld/pulls/421/comments","review_comment_url":"https://api.github.com/repos/weld-project/weld/pulls/comments{/number}","comments_url":"https://api.github.com/repos/weld-project/weld/issues/421/comments","statuses_url":"https://api.github.com/repos/weld-project/weld/statuses/188f66d60f32a430b2f8d28fd6a6fd34fea926ce","head":{"label":"pratiksha:sort","ref":"sort","sha":"188f66d60f32a430b2f8d28fd6a6fd34fea926ce","user":{"login":"pratiksha","id":553500,"node_id":"MDQ6VXNlcjU1MzUwMA==","avatar_url":"https://avatars0.githubusercontent.com/u/553500?v=4","gravatar_id":"","url":"https://api.github.com/users/pratiksha","html_url":"https://github.com/pratiksha","followers_url":"https://api.github.com/users/pratiksha/followers","following_url":"https://api.github.com/users/pratiksha/following{/other_user}","gists_url":"https://api.github.com/users/pratiksha/gists{/gist_id}","starred_url":"https://api.github.com/users/pratiksha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pratiksha/subscriptions","organizations_url":"https://api.github.com/users/pratiksha/orgs","repos_url":"https://api.github.com/users/pratiksha/repos","events_url":"https://api.github.com/users/pratiksha/events{/privacy}","received_events_url":"https://api.github.com/users/pratiksha/received_events","type":"User","site_admin":false},"repo":{"id":102075985,"node_id":"MDEwOlJlcG9zaXRvcnkxMDIwNzU5ODU=","name":"weld","full_name":"pratiksha/weld","private":false,"owner":{"login":"pratiksha","id":553500,"node_id":"MDQ6VXNlcjU1MzUwMA==","avatar_url":"https://avatars0.githubusercontent.com/u/553500?v=4","gravatar_id":"","url":"https://api.github.com/users/pratiksha","html_url":"https://github.com/pratiksha","followers_url":"https://api.github.com/users/pratiksha/followers","following_url":"https://api.github.com/users/pratiksha/following{/other_user}","gists_url":"https://api.github.com/users/pratiksha/gists{/gist_id}","starred_url":"https://api.github.com/users/pratiksha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pratiksha/subscriptions","organizations_url":"https://api.github.com/users/pratiksha/orgs","repos_url":"https://api.github.com/users/pratiksha/repos","events_url":"https://api.github.com/users/pratiksha/events{/privacy}","received_events_url":"https://api.github.com/users/pratiksha/received_events","type":"User","site_admin":false},"html_url":"https://github.com/pratiksha/weld","description":"Weld is a runtime and language for accelerating data analytics frameworks","fork":true,"url":"https://api.github.com/repos/pratiksha/weld","forks_url":"https://api.github.com/repos/pratiksha/weld/forks","keys_url":"https://api.github.com/repos/pratiksha/weld/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pratiksha/weld/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pratiksha/weld/teams","hooks_url":"https://api.github.com/repos/pratiksha/weld/hooks","issue_events_url":"https://api.github.com/repos/pratiksha/weld/issues/events{/number}","events_url":"https://api.github.com/repos/pratiksha/weld/events","assignees_url":"https://api.github.com/repos/pratiksha/weld/assignees{/user}","branches_url":"https://api.github.com/repos/pratiksha/weld/branches{/branch}","tags_url":"https://api.github.com/repos/pratiksha/weld/tags","blobs_url":"https://api.github.com/repos/pratiksha/weld/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pratiksha/weld/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pratiksha/weld/git/refs{/sha}","trees_url":"https://api.github.com/repos/pratiksha/weld/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pratiksha/weld/statuses/{sha}","languages_url":"https://api.github.com/repos/pratiksha/weld/languages","stargazers_url":"https://api.github.com/repos/pratiksha/weld/stargazers","contributors_url":"https://api.github.com/repos/pratiksha/weld/contributors","subscribers_url":"https://api.github.com/repos/pratiksha/weld/subscribers","subscription_url":"https://api.github.com/repos/pratiksha/weld/subscription","commits_url":"https://api.github.com/repos/pratiksha/weld/commits{/sha}","git_commits_url":"https://api.github.com/repos/pratiksha/weld/git/commits{/sha}","comments_url":"https://api.github.com/repos/pratiksha/weld/comments{/number}","issue_comment_url":"https://api.github.com/repos/pratiksha/weld/issues/comments{/number}","contents_url":"https://api.github.com/repos/pratiksha/weld/contents/{+path}","compare_url":"https://api.github.com/repos/pratiksha/weld/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pratiksha/weld/merges","archive_url":"https://api.github.com/repos/pratiksha/weld/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pratiksha/weld/downloads","issues_url":"https://api.github.com/repos/pratiksha/weld/issues{/number}","pulls_url":"https://api.github.com/repos/pratiksha/weld/pulls{/number}","milestones_url":"https://api.github.com/repos/pratiksha/weld/milestones{/number}","notifications_url":"https://api.github.com/repos/pratiksha/weld/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pratiksha/weld/labels{/name}","releases_url":"https://api.github.com/repos/pratiksha/weld/releases{/id}","deployments_url":"https://api.github.com/repos/pratiksha/weld/deployments","created_at":"2017-09-01T05:11:27Z","updated_at":"2018-05-11T20:49:42Z","pushed_at":"2018-11-24T07:54:33Z","git_url":"git://github.com/pratiksha/weld.git","ssh_url":"git@github.com:pratiksha/weld.git","clone_url":"https://github.com/pratiksha/weld.git","svn_url":"https://github.com/pratiksha/weld","homepage":"weld.stanford.edu","size":2909,"stargazers_count":1,"watchers_count":1,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"weld-project:llvm-st","ref":"llvm-st","sha":"d7948d937de3a327cb1586ff2a8afb498e8642f2","user":{"login":"weld-project","id":23513568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNTEzNTY4","avatar_url":"https://avatars1.githubusercontent.com/u/23513568?v=4","gravatar_id":"","url":"https://api.github.com/users/weld-project","html_url":"https://github.com/weld-project","followers_url":"https://api.github.com/users/weld-project/followers","following_url":"https://api.github.com/users/weld-project/following{/other_user}","gists_url":"https://api.github.com/users/weld-project/gists{/gist_id}","starred_url":"https://api.github.com/users/weld-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weld-project/subscriptions","organizations_url":"https://api.github.com/users/weld-project/orgs","repos_url":"https://api.github.com/users/weld-project/repos","events_url":"https://api.github.com/users/weld-project/events{/privacy}","received_events_url":"https://api.github.com/users/weld-project/received_events","type":"Organization","site_admin":false},"repo":{"id":61008232,"node_id":"MDEwOlJlcG9zaXRvcnk2MTAwODIzMg==","name":"weld","full_name":"weld-project/weld","private":false,"owner":{"login":"weld-project","id":23513568,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNTEzNTY4","avatar_url":"https://avatars1.githubusercontent.com/u/23513568?v=4","gravatar_id":"","url":"https://api.github.com/users/weld-project","html_url":"https://github.com/weld-project","followers_url":"https://api.github.com/users/weld-project/followers","following_url":"https://api.github.com/users/weld-project/following{/other_user}","gists_url":"https://api.github.com/users/weld-project/gists{/gist_id}","starred_url":"https://api.github.com/users/weld-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weld-project/subscriptions","organizations_url":"https://api.github.com/users/weld-project/orgs","repos_url":"https://api.github.com/users/weld-project/repos","events_url":"https://api.github.com/users/weld-project/events{/privacy}","received_events_url":"https://api.github.com/users/weld-project/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/weld-project/weld","description":"High-performance runtime for data analytics applications","fork":false,"url":"https://api.github.com/repos/weld-project/weld","forks_url":"https://api.github.com/repos/weld-project/weld/forks","keys_url":"https://api.github.com/repos/weld-project/weld/keys{/key_id}","collaborators_url":"https://api.github.com/repos/weld-project/weld/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/weld-project/weld/teams","hooks_url":"https://api.github.com/repos/weld-project/weld/hooks","issue_events_url":"https://api.github.com/repos/weld-project/weld/issues/events{/number}","events_url":"https://api.github.com/repos/weld-project/weld/events","assignees_url":"https://api.github.com/repos/weld-project/weld/assignees{/user}","branches_url":"https://api.github.com/repos/weld-project/weld/branches{/branch}","tags_url":"https://api.github.com/repos/weld-project/weld/tags","blobs_url":"https://api.github.com/repos/weld-project/weld/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/weld-project/weld/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/weld-project/weld/git/refs{/sha}","trees_url":"https://api.github.com/repos/weld-project/weld/git/trees{/sha}","statuses_url":"https://api.github.com/repos/weld-project/weld/statuses/{sha}","languages_url":"https://api.github.com/repos/weld-project/weld/languages","stargazers_url":"https://api.github.com/repos/weld-project/weld/stargazers","contributors_url":"https://api.github.com/repos/weld-project/weld/contributors","subscribers_url":"https://api.github.com/repos/weld-project/weld/subscribers","subscription_url":"https://api.github.com/repos/weld-project/weld/subscription","commits_url":"https://api.github.com/repos/weld-project/weld/commits{/sha}","git_commits_url":"https://api.github.com/repos/weld-project/weld/git/commits{/sha}","comments_url":"https://api.github.com/repos/weld-project/weld/comments{/number}","issue_comment_url":"https://api.github.com/repos/weld-project/weld/issues/comments{/number}","contents_url":"https://api.github.com/repos/weld-project/weld/contents/{+path}","compare_url":"https://api.github.com/repos/weld-project/weld/compare/{base}...{head}","merges_url":"https://api.github.com/repos/weld-project/weld/merges","archive_url":"https://api.github.com/repos/weld-project/weld/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/weld-project/weld/downloads","issues_url":"https://api.github.com/repos/weld-project/weld/issues{/number}","pulls_url":"https://api.github.com/repos/weld-project/weld/pulls{/number}","milestones_url":"https://api.github.com/repos/weld-project/weld/milestones{/number}","notifications_url":"https://api.github.com/repos/weld-project/weld/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/weld-project/weld/labels{/name}","releases_url":"https://api.github.com/repos/weld-project/weld/releases{/id}","deployments_url":"https://api.github.com/repos/weld-project/weld/deployments","created_at":"2016-06-13T05:00:24Z","updated_at":"2018-11-26T07:00:01Z","pushed_at":"2018-11-25T19:57:46Z","git_url":"git://github.com/weld-project/weld.git","ssh_url":"git@github.com:weld-project/weld.git","clone_url":"https://github.com/weld-project/weld.git","svn_url":"https://github.com/weld-project/weld","homepage":"https://www.weld.rs","size":2528,"stargazers_count":993,"watchers_count":993,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":124,"mirror_url":null,"archived":false,"open_issues_count":50,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":124,"open_issues":50,"watchers":993,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/weld-project/weld/pulls/421"},"html":{"href":"https://github.com/weld-project/weld/pull/421"},"issue":{"href":"https://api.github.com/repos/weld-project/weld/issues/421"},"comments":{"href":"https://api.github.com/repos/weld-project/weld/issues/421/comments"},"review_comments":{"href":"https://api.github.com/repos/weld-project/weld/pulls/421/comments"},"review_comment":{"href":"https://api.github.com/repos/weld-project/weld/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/weld-project/weld/pulls/421/commits"},"statuses":{"href":"https://api.github.com/repos/weld-project/weld/statuses/188f66d60f32a430b2f8d28fd6a6fd34fea926ce"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sppalkia"}}