view lib/Support/Unix/RWMutex.inc @ 20:a5b470e0d09d

set FastCC(Calling Convention) when the function is code segment and set GuaranteedTailCallOpt. but llvm still output not jmp but call...
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Sun, 06 Oct 2013 18:16:15 +0900
parents 9ad51c7bc036
children 54457678186b
line wrap: on
line source

//= llvm/Support/Unix/RWMutex.inc - Unix Reader/Writer Mutual Exclusion Lock  =//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file implements the Unix specific (non-pthread) RWMutex class.
//
//===----------------------------------------------------------------------===//

//===----------------------------------------------------------------------===//
//=== WARNING: Implementation here must contain only generic UNIX code that
//===          is guaranteed to work on *all* UNIX variants.
//===----------------------------------------------------------------------===//

namespace llvm {

using namespace sys;

RWMutexImpl::RWMutexImpl() { }

RWMutexImpl::~RWMutexImpl() { }

bool RWMutexImpl::reader_acquire() {
  return true;
}

bool RWMutexImpl::reader_release() {
  return true;
}

bool RWMutexImpl::writer_acquire() {
  return true;
}

bool RWMutexImpl::writer_release() {
  return true;
}

}